diff options
| author | Julien Phalip <jphalip@gmail.com> | 2011-12-19 12:11:12 +0000 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2011-12-19 12:11:12 +0000 |
| commit | 3e790ae63266bee48ad659ddedc792219ee33a0e (patch) | |
| tree | 110305536acd598ed441859aaad9eef5837089a2 /docs/ref/contrib | |
| parent | 5a48cb5f61b2670b53f378bb704fa819f7e38111 (diff) | |
Fixed #17148 -- Fixed the signature of `WizardView.get_context_data()` to play nicer with mixin inheritance. Thanks, Bradley Ayers and Stephan Jaekel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/contrib')
| -rw-r--r-- | docs/ref/contrib/formtools/form-wizard.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt index aadd7d276f..4c071c155f 100644 --- a/docs/ref/contrib/formtools/form-wizard.txt +++ b/docs/ref/contrib/formtools/form-wizard.txt @@ -309,7 +309,7 @@ Advanced ``WizardView`` methods Example to add extra variables for a specific step:: def get_context_data(self, form, **kwargs): - context = super(MyWizard, self).get_context_data(form, **kwargs) + context = super(MyWizard, self).get_context_data(form=form, **kwargs) if self.steps.current == 'my_step_name': context.update({'another_var': True}) return context @@ -436,7 +436,7 @@ Advanced ``WizardView`` methods def render(self, form=None, **kwargs): form = form or self.get_form() - context = self.get_context_data(form, **kwargs) + context = self.get_context_data(form=form, **kwargs) return self.render_to_response(context) Providing initial data for the forms |
