Quota form: Change item selection field per context (#3839)

* Change item checkbox select to multiselect widget

* Make item selection widget dependent on count

* Make item selection widget dependent on variable

* Adjust widget choices

* Fix widget choices

* Fix item variation key errors

* Simplify code

* Fix classname

* Improve argument name

* Fix widget name
This commit is contained in:
Phin Wolkwitz
2024-02-08 09:33:39 +01:00
committed by GitHub
parent 2b72cfdaff
commit 39f9329207
7 changed files with 86 additions and 9 deletions

View File

@@ -295,6 +295,7 @@ class SubEventEditorMixin(MetaDataEditorMixin):
]
extra = 0
kwargs['searchable_selection'] = True
formsetclass = inlineformset_factory(
SubEvent, Quota,
form=QuotaForm, formset=QuotaFormSet, min_num=1, validate_min=True,