diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-06-14 10:35:02 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-06-14 10:35:02 +0000 |
| commit | b5e7eab9fddb981e0e20a663c76604e7d0c9a42a (patch) | |
| tree | cfd6b0a256a6dfb5c1e6964953b358753074f7a0 /docs | |
| parent | 3ee076b1355f888133b9f5915e9118066ee2acc1 (diff) | |
Fixed #16236 -- Added get_form_kwargs method to WizardView as a way to easily provide kwargs to each step form.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/formtools/form-wizard.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt index 44d29eebce..b0e685e5a9 100644 --- a/docs/ref/contrib/formtools/form-wizard.txt +++ b/docs/ref/contrib/formtools/form-wizard.txt @@ -271,6 +271,16 @@ Advanced ``WizardView`` methods def get_form_initial(self, step): return self.initial_dict.get(step, {}) +.. method:: WizardView.get_form_kwargs(step) + + Returns a dictionary which will be used as the keyword arguments when + instantiating the form instance on given ``step``. + + The default implementation:: + + def get_form_kwargs(self, step): + return {} + .. method:: WizardView.get_form_instance(step) Returns a object which will be passed to the form for ``step`` as |
