Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Corrected the `instance_dict` description for form wizards.

  • Loading branch information...
commit 7f225880e4b7f846a1e910f6be0bce11f9a8d5ec 1 parent 6bc1b22
Florian Apolloner authored June 22, 2012
5  django/contrib/formtools/wizard/views.py
@@ -133,8 +133,9 @@ def get_initkwargs(cls, form_list, initial_dict=None,
133 133
           The key should be equal to the `step_name` in the `form_list` (or
134 134
           the str of the zero based counter - if no step_names added in the
135 135
           `form_list`)
136  
-        * `instance_dict` - contains a dictionary of instance objects. This
137  
-          is only used when `ModelForm`s are used. The key should be equal to
  136
+        * `instance_dict` - contains a dictionary whose values are model
  137
+          instances if the step is based on a ``ModelForm`` and querysets if
  138
+          the step is based on a ``ModelFormSet``. The key should be equal to
138 139
           the `step_name` in the `form_list`. Same rules as for `initial_dict`
139 140
           apply.
140 141
         * `condition_dict` - contains a dictionary of boolean values or
5  docs/ref/contrib/formtools/form-wizard.txt
@@ -554,9 +554,8 @@ How to work with ModelForm and ModelFormSet
554 554
 WizardView supports :doc:`ModelForms </topics/forms/modelforms>` and
555 555
 :ref:`ModelFormSets <model-formsets>`. Additionally to
556 556
 :attr:`~WizardView.initial_dict`, the :meth:`~WizardView.as_view` method takes
557  
-an ``instance_dict`` argument that should contain instances of ``ModelForm`` and
558  
-``ModelFormSet``.  Similarly to :attr:`~WizardView.initial_dict`, these
559  
-dictionary key values should be equal to the step number in the form list.
  557
+an ``instance_dict`` argument that should contain model instances for steps
  558
+based on ``ModelForm`` and querysets for steps based on ``ModelFormSet``.
560 559
 
561 560
 Usage of ``NamedUrlWizardView``
562 561
 ===============================

0 notes on commit 7f22588

Please sign in to comment.
Something went wrong with that request. Please try again.