Skip to content

Commit

Permalink
updated django-formtools 2.3 to 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
4-dash committed Aug 29, 2024
1 parent c9588a8 commit 062ea08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Django==5.1
django-debug-toolbar==4.4.6
docutils==0.21.2
freezegun==1.5.1
django-formtools==2.3
django-formtools==2.5.1
8 changes: 5 additions & 3 deletions src/feedback/views/veranstalter.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_context_data(self, form, **kwargs):

progressbar = []
step_active = True
for step_key in self.form_list:
for step_key in self.get_form_list():
progressbar.append({
'step_value': VERANSTALTER_WIZARD_STEPS[step_key],
'step_active': step_active,
Expand All @@ -205,7 +205,7 @@ def get_context_data(self, form, **kwargs):

if self.steps.current == "zusammenfassung":
all_form_data = []
for step_form in self.form_list:
for step_form in self.get_form_list():
form_obj = self.get_form(
step=step_form,
data=self.storage.get_step_data(step_form),
Expand Down Expand Up @@ -255,7 +255,9 @@ def get_template_names(self):
return [VERANSTALTER_VIEW_TEMPLATES[self.steps.current]]

def done(self, form_list, **kwargs):
cleaned_data = self.get_cleaned_basisdaten()
cleaned_data = {}
if perform_evalution(self) :
cleaned_data = self.get_cleaned_basisdaten()
ergebnis_empfaenger = cleaned_data.get('ergebnis_empfaenger', None)

instance = self.get_instance()
Expand Down

0 comments on commit 062ea08

Please sign in to comment.