mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
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:
@@ -360,6 +360,7 @@ class BulkSubEventItemVariationForm(SubEventItemVariationForm):
|
||||
class QuotaFormSet(I18nInlineFormSet):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.searchable_selection = kwargs.pop('searchable_selection', None)
|
||||
self.event = kwargs.pop('event', None)
|
||||
self.locales = self.event.settings.get('locales')
|
||||
super().__init__(*args, **kwargs)
|
||||
@@ -372,7 +373,7 @@ class QuotaFormSet(I18nInlineFormSet):
|
||||
kwargs['locales'] = self.locales
|
||||
kwargs['event'] = self.event
|
||||
kwargs['items'] = self.items
|
||||
kwargs['items'] = self.items
|
||||
kwargs['searchable_selection'] = self.searchable_selection
|
||||
return super()._construct_form(i, **kwargs)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user