Allow quotas to "close" when once full (#1344)

* Model

* Some UI

* API and logging

* Permission check

* Add tests

* Move option around
This commit is contained in:
Raphael Michel
2019-07-16 14:02:27 +02:00
committed by GitHub
parent c1e2fb36ba
commit a02ea45dba
16 changed files with 219 additions and 12 deletions

View File

@@ -169,7 +169,8 @@ class QuotaForm(I18nModelForm):
fields = [
'name',
'size',
'subevent'
'subevent',
'close_when_sold_out'
]
field_classes = {
'subevent': SafeModelChoiceField,