mirror of
https://github.com/django/django.git
synced 2024-12-27 11:35:53 +00:00
Fixed #22372 -- Improved description of WizardView.get_context_data().
Thanks simon29 for the report.
This commit is contained in:
parent
d73d0e071c
commit
a8e2ec0e82
@ -538,8 +538,7 @@ class WizardView(TemplateView):
|
|||||||
context variables are:
|
context variables are:
|
||||||
|
|
||||||
* all extra data stored in the storage backend
|
* all extra data stored in the storage backend
|
||||||
* `form` - form instance of the current step
|
* `wizard` - a dictionary representation of the wizard instance
|
||||||
* `wizard` - the wizard instance itself
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
@ -401,8 +401,13 @@ Advanced ``WizardView`` methods
|
|||||||
The default template context variables are:
|
The default template context variables are:
|
||||||
|
|
||||||
* Any extra data the storage backend has stored
|
* Any extra data the storage backend has stored
|
||||||
* ``form`` -- form instance of the current step
|
* ``wizard`` -- a dictionary representation of the wizard instance with the
|
||||||
* ``wizard`` -- the wizard instance itself
|
following key/values:
|
||||||
|
|
||||||
|
* ``form`` -- :class:`~django.forms.Form` or
|
||||||
|
:class:`~django.forms.formsets.BaseFormSet` instance for the current step
|
||||||
|
* ``steps`` -- A helper object to access the various steps related data
|
||||||
|
* ``management_form`` -- all the management data for the current step
|
||||||
|
|
||||||
Example to add extra variables for a specific step::
|
Example to add extra variables for a specific step::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user