mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +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':
|
if step != 'foundation':
|
||||||
fdata = self.get_cleaned_data_for_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)
|
kwargs.update(fdata)
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user