From 0c45e734567bfedd61bcf2e4a5a011574639711e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 26 Feb 2019 11:59:57 +0100 Subject: [PATCH] Event creation: Throw user back if validation of previous step fails --- src/pretix/control/views/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pretix/control/views/main.py b/src/pretix/control/views/main.py index 6528570600..37110aa8dd 100644 --- a/src/pretix/control/views/main.py +++ b/src/pretix/control/views/main.py @@ -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