Event creation: Throw user back if validation of previous step fails

This commit is contained in:
Raphael Michel
2019-02-26 11:59:57 +01:00
parent 104f84b7a8
commit 0c45e73456

View File

@@ -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