mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Event creation UX: Pre-choose organizer if there is only one
This commit is contained in:
@@ -46,6 +46,8 @@ class EventWizardFoundationForm(forms.Form):
|
|||||||
empty_label=None,
|
empty_label=None,
|
||||||
required=True
|
required=True
|
||||||
)
|
)
|
||||||
|
if len(self.fields['organizer'].choices) == 1:
|
||||||
|
self.fields['organizer'].initial = self.fields['organizer'].queryset.first()
|
||||||
|
|
||||||
|
|
||||||
class EventWizardBasicsForm(I18nModelForm):
|
class EventWizardBasicsForm(I18nModelForm):
|
||||||
|
|||||||
Reference in New Issue
Block a user