mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Event creation: Throw user back if validation of previous step fails
This commit is contained in:
@@ -133,6 +133,13 @@ class EventWizard(SessionWizardView):
|
||||
}
|
||||
if step != 'foundation':
|
||||
fdata = self.get_cleaned_data_for_step('foundation')
|
||||
if fdata is None:
|
||||
fdata = {
|
||||
'organizer': Organizer(slug='_nonexisting'),
|
||||
'has_subevents': False,
|
||||
'locales': ['en']
|
||||
}
|
||||
# The show must go on, we catch this error in render()
|
||||
kwargs.update(fdata)
|
||||
return kwargs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user