diff --git a/django/contrib/formtools/tests/wizard/namedwizardtests/tests.py b/django/contrib/formtools/tests/wizard/namedwizardtests/tests.py
index 0f63882..b5ebe90 100644
a
|
b
|
class NamedWizardTests(object):
|
28 | 28 | self.assertEqual(wizard['steps'].prev, None) |
29 | 29 | self.assertEqual(wizard['steps'].next, 'form2') |
30 | 30 | self.assertEqual(wizard['steps'].count, 4) |
| 31 | self.assertEqual(wizard['url_name'], self.wizard_urlname) |
| 32 | |
31 | 33 | |
32 | 34 | def test_initial_call_with_params(self): |
33 | 35 | get_params = {'getvar1': 'getval1', 'getvar2': 'getval2'} |
diff --git a/django/contrib/formtools/wizard/views.py b/django/contrib/formtools/wizard/views.py
index 15ba146..a0a2f04 100644
a
|
b
|
class NamedUrlWizardView(WizardView):
|
644 | 644 | return redirect(self.url_name, step=prev_step) |
645 | 645 | return super(NamedUrlWizardView, self).post(*args, **kwargs) |
646 | 646 | |
| 647 | def get_context_data(self, form, **kwargs): |
| 648 | """ |
| 649 | NamedUrlWizardView provides the url_name of this wizard in the context |
| 650 | dict `wizard`. |
| 651 | """ |
| 652 | context = super(NamedUrlWizardView, self).get_context_data(form=form, **kwargs) |
| 653 | context['wizard']['url_name'] = self.url_name |
| 654 | return context |
| 655 | |
647 | 656 | def render_next_step(self, form, **kwargs): |
648 | 657 | """ |
649 | 658 | When using the NamedUrlFormWizard, we have to redirect to update the |