Skip to content
Snippets Groups Projects
Verified Commit af193515 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Workaround if email step is not needed

parent d4f2f35c
No related branches found
No related tags found
No related merge requests found
Pipeline #192165 passed with warnings
......@@ -540,7 +540,10 @@ class RegisterEventWizardView(SessionWizardView):
def done(self, form_list, **kwargs):
event = Event.objects.get(slug=self.kwargs["slug"])
cleaned_data_email = self.get_cleaned_data_for_step("email")
try:
cleaned_data_email = self.get_cleaned_data_for_step("email")
except KeyError:
cleaned_data_email = False
cleaned_data_contact_details = self.get_cleaned_data_for_step("contact_details")
cleaned_data_guardians = self.get_cleaned_data_for_step("guardians")
cleaned_data_register = self.get_cleaned_data_for_step("register")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment