forked from CGM_Public/pretix_original
* 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:
committed by
Raphael Michel
parent
022e02d913
commit
841cfe52a2
@@ -186,6 +186,11 @@ class Item(LoggedModel):
|
||||
help_text=_('This product will be hidden from the event page until the user enters a voucher '
|
||||
'code that is specifically tied to this product (and not via a quota).')
|
||||
)
|
||||
allow_cancel = models.BooleanField(
|
||||
verbose_name=_('Allow product to be cancelled'),
|
||||
default=True,
|
||||
help_text=_('Whether this product might or not be cancelled.')
|
||||
)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Product")
|
||||
|
||||
Reference in New Issue
Block a user