diff --git a/django/contrib/formtools/wizard/views.py b/django/contrib/formtools/wizard/views.py
index 2dab77d..887ed0e 100644
a
|
b
|
class WizardView(TemplateView):
|
250 | 250 | wizard_prev_step = self.request.POST.get('wizard_prev_step', None) |
251 | 251 | if wizard_prev_step and wizard_prev_step in self.get_form_list(): |
252 | 252 | self.storage.current_step = wizard_prev_step |
253 | | form = self.get_form( |
| 253 | form = self.get_form(step=wizard_prev_step, |
254 | 254 | data=self.storage.get_step_data(self.steps.current), |
255 | 255 | files=self.storage.get_step_files(self.steps.current)) |
256 | 256 | return self.render(form) |
… |
… |
class WizardView(TemplateView):
|
268 | 268 | self.storage.current_step = form_current_step |
269 | 269 | |
270 | 270 | # get the form for the current step |
271 | | form = self.get_form(data=self.request.POST, files=self.request.FILES) |
| 271 | form = self.get_form(step=self.steps.current, data=self.request.POST, files=self.request.FILES) |
272 | 272 | |
273 | 273 | # and try to validate |
274 | 274 | if form.is_valid(): |
… |
… |
class NamedUrlWizardView(WizardView):
|
617 | 617 | # if yes, change the step in the storage (if name exists) |
618 | 618 | elif step_url == self.steps.current: |
619 | 619 | # URL step name and storage step name are equal, render! |
620 | | return self.render(self.get_form( |
| 620 | return self.render(self.get_form(step=step_url, |
621 | 621 | data=self.storage.current_step_data, |
622 | 622 | files=self.storage.current_step_data, |
623 | 623 | ), **kwargs) |
624 | 624 | |
625 | 625 | elif step_url in self.get_form_list(): |
626 | 626 | self.storage.current_step = step_url |
627 | | return self.render(self.get_form( |
| 627 | return self.render(self.get_form(step=step_url, |
628 | 628 | data=self.storage.current_step_data, |
629 | 629 | files=self.storage.current_step_data, |
630 | 630 | ), **kwargs) |