Add constraint for a maximum number of a ticket per order

This commit is contained in:
Raphael Michel
2017-03-24 17:11:48 +01:00
parent 36d6b6f9ab
commit 69faab01b2
10 changed files with 141 additions and 4 deletions

View File

@@ -167,7 +167,8 @@ class ItemUpdateForm(I18nModelForm):
'available_until',
'require_voucher',
'hide_without_voucher',
'allow_cancel'
'allow_cancel',
'max_per_order'
]
widgets = {
'available_from': forms.DateTimeInput(attrs={'class': 'datetimepicker'}),