mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Voucher form: do not require subevent
This commit is contained in:
@@ -72,7 +72,7 @@ class VoucherForm(I18nModelForm):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
self.fields['subevent'].widget.choices = self.fields['subevent'].choices
|
self.fields['subevent'].widget.choices = self.fields['subevent'].choices
|
||||||
self.fields['subevent'].required = True
|
self.fields['subevent'].required = False
|
||||||
elif 'subevent':
|
elif 'subevent':
|
||||||
del self.fields['subevent']
|
del self.fields['subevent']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user