From 0b0ecf22bff0ddeb100e4fbddfcb0aa5e5042126 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Nov 2022 16:11:35 +0100 Subject: [PATCH] Bump django-formtools from 2.3 to 2.4 in /src (#2839) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raphael Michel --- src/pretix/control/views/main.py | 5 ++++- src/setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pretix/control/views/main.py b/src/pretix/control/views/main.py index bd341b339..a09ba491c 100644 --- a/src/pretix/control/views/main.py +++ b/src/pretix/control/views/main.py @@ -257,7 +257,10 @@ class EventWizard(SafeSessionWizardView): def done(self, form_list, form_dict, **kwargs): foundation_data = self.get_cleaned_data_for_step('foundation') basics_data = self.get_cleaned_data_for_step('basics') - copy_data = self.get_cleaned_data_for_step('copy') + try: + copy_data = self.get_cleaned_data_for_step('copy') + except KeyError: + copy_data = None with transaction.atomic(), language(basics_data['locale']): event = form_dict['basics'].instance diff --git a/src/setup.py b/src/setup.py index 9a361bd79..c60924925 100644 --- a/src/setup.py +++ b/src/setup.py @@ -174,7 +174,7 @@ setup( 'django-countries==7.4.*', 'django-filter==22.1', 'django-formset-js-improved==0.5.0.3', - 'django-formtools==2.3', + 'django-formtools==2.4', 'django-hierarkey==1.1.*', 'django-hijack==3.2.*', 'django-i18nfield==1.9.*,>=1.9.4',