Fix #91 -- Make products/orders that are not cancelable (#204)

* Make products/orders that are not cancellable
Update Unit Tests

* Make use of select_related instead of prefetch_related
Simplify cancellable logic
Migrations

* Simplify cancellable logic
Maske use of select_related instead of prefetch_related

* Fix cancelable condition bug
This commit is contained in:
Enrique Saez
2016-09-01 08:55:02 +02:00
committed by Raphael Michel
parent 022e02d913
commit 841cfe52a2
8 changed files with 114 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ class ItemCreateForm(I18nModelForm):
'admission',
'default_price',
'tax_rate',
'allow_cancel'
]
@@ -144,6 +145,7 @@ class ItemUpdateForm(I18nModelForm):
'available_until',
'require_voucher',
'hide_without_voucher',
'allow_cancel'
]