Corrected the `instance_dict` description for form wizards.
This commit is contained in:
parent
6bc1b22299
commit
7f225880e4
|
@ -133,8 +133,9 @@ class WizardView(TemplateView):
|
||||||
The key should be equal to the `step_name` in the `form_list` (or
|
The key should be equal to the `step_name` in the `form_list` (or
|
||||||
the str of the zero based counter - if no step_names added in the
|
the str of the zero based counter - if no step_names added in the
|
||||||
`form_list`)
|
`form_list`)
|
||||||
* `instance_dict` - contains a dictionary of instance objects. This
|
* `instance_dict` - contains a dictionary whose values are model
|
||||||
is only used when `ModelForm`s are used. The key should be equal to
|
instances if the step is based on a ``ModelForm`` and querysets if
|
||||||
|
the step is based on a ``ModelFormSet``. The key should be equal to
|
||||||
the `step_name` in the `form_list`. Same rules as for `initial_dict`
|
the `step_name` in the `form_list`. Same rules as for `initial_dict`
|
||||||
apply.
|
apply.
|
||||||
* `condition_dict` - contains a dictionary of boolean values or
|
* `condition_dict` - contains a dictionary of boolean values or
|
||||||
|
|
|
@ -554,9 +554,8 @@ How to work with ModelForm and ModelFormSet
|
||||||
WizardView supports :doc:`ModelForms </topics/forms/modelforms>` and
|
WizardView supports :doc:`ModelForms </topics/forms/modelforms>` and
|
||||||
:ref:`ModelFormSets <model-formsets>`. Additionally to
|
:ref:`ModelFormSets <model-formsets>`. Additionally to
|
||||||
:attr:`~WizardView.initial_dict`, the :meth:`~WizardView.as_view` method takes
|
:attr:`~WizardView.initial_dict`, the :meth:`~WizardView.as_view` method takes
|
||||||
an ``instance_dict`` argument that should contain instances of ``ModelForm`` and
|
an ``instance_dict`` argument that should contain model instances for steps
|
||||||
``ModelFormSet``. Similarly to :attr:`~WizardView.initial_dict`, these
|
based on ``ModelForm`` and querysets for steps based on ``ModelFormSet``.
|
||||||
dictionary key values should be equal to the step number in the form list.
|
|
||||||
|
|
||||||
Usage of ``NamedUrlWizardView``
|
Usage of ``NamedUrlWizardView``
|
||||||
===============================
|
===============================
|
||||||
|
|
Loading…
Reference in New Issue