diff --git a/django/contrib/formtools/wizard/views.py b/django/contrib/formtools/wizard/views.py
index 15ba146..e3cd320 100644
|
a
|
b
|
class WizardView(TemplateView):
|
| 497 | 497 | step = self.steps.current |
| 498 | 498 | return self.get_form_list().keyOrder.index(step) |
| 499 | 499 | |
| 500 | | def get_context_data(self, form, *args, **kwargs): |
| | 500 | def get_context_data(self, form, **kwargs): |
| 501 | 501 | """ |
| 502 | 502 | Returns the template context for a step. You can overwrite this method |
| 503 | 503 | to add more data for all or some steps. This method returns a |
| … |
… |
class WizardView(TemplateView):
|
| 512 | 512 | |
| 513 | 513 | .. code-block:: python |
| 514 | 514 | |
| 515 | | class MyWizard(FormWizard): |
| | 515 | class MyWizardView(WizardView): |
| 516 | 516 | def get_context_data(self, form, **kwargs): |
| 517 | | context = super(MyWizard, self).get_context_data(form, **kwargs) |
| | 517 | context = super(MyWizardView, self).get_context_data(form, **kwargs) |
| 518 | 518 | if self.steps.current == 'my_step_name': |
| 519 | 519 | context.update({'another_var': True}) |
| 520 | 520 | return context |
| 521 | 521 | """ |
| 522 | | context = super(WizardView, self).get_context_data(*args, **kwargs) |
| | 522 | context = super(WizardView, self).get_context_data(**kwargs) |
| 523 | 523 | context.update(self.storage.extra_data) |
| 524 | 524 | context['wizard'] = { |
| 525 | 525 | 'form': form, |