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

Workaround if email or register step is not needed

parent d4f2f35c
No related branches found
No related tags found
1 merge request!58Update formtools and dependencies
Pipeline #192166 passed with warnings
...@@ -540,10 +540,16 @@ class RegisterEventWizardView(SessionWizardView): ...@@ -540,10 +540,16 @@ class RegisterEventWizardView(SessionWizardView):
def done(self, form_list, **kwargs): def done(self, form_list, **kwargs):
event = Event.objects.get(slug=self.kwargs["slug"]) 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: # FIXME
cleaned_data_email = False
cleaned_data_contact_details = self.get_cleaned_data_for_step("contact_details") cleaned_data_contact_details = self.get_cleaned_data_for_step("contact_details")
cleaned_data_guardians = self.get_cleaned_data_for_step("guardians") cleaned_data_guardians = self.get_cleaned_data_for_step("guardians")
cleaned_data_register = self.get_cleaned_data_for_step("register") try:
cleaned_data_register = self.get_cleaned_data_for_step("register")
except KeyError: # FIXME
cleaned_data_register = False
cleaned_data_additional = self.get_cleaned_data_for_step("additional") cleaned_data_additional = self.get_cleaned_data_for_step("additional")
cleaned_data_financial = self.get_cleaned_data_for_step("financial") cleaned_data_financial = self.get_cleaned_data_for_step("financial")
cleaned_data_consent = self.get_cleaned_data_for_step("consent") cleaned_data_consent = self.get_cleaned_data_for_step("consent")
......
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