Event creation: Do not declare tax rate as optional (fixes #4794) (#5619)

This commit is contained in:
Raphael Michel
2025-12-12 08:59:07 +01:00
committed by GitHub
parent b5cc8b368b
commit b13368d614

View File

@@ -207,6 +207,7 @@ class EventWizardBasicsForm(I18nModelForm):
'Sample Conference Center\nHeidelberg, Germany'
)
self.fields['slug'].widget.prefix = build_absolute_uri(self.organizer, 'presale:organizer.index')
self.fields['tax_rate']._required = True # Do not render as optional because it is conditionally required
if self.has_subevents:
del self.fields['presale_start']
del self.fields['presale_end']