summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/formtools/wizard/views.py3
-rw-r--r--docs/ref/contrib/formtools/form-wizard.txt9
2 files changed, 8 insertions, 4 deletions
diff --git a/django/contrib/formtools/wizard/views.py b/django/contrib/formtools/wizard/views.py
index c478f20854..494d87a3d1 100644
--- a/django/contrib/formtools/wizard/views.py
+++ b/django/contrib/formtools/wizard/views.py
@@ -534,8 +534,7 @@ class WizardView(TemplateView):
context variables are:
* all extra data stored in the storage backend
- * `form` - form instance of the current step
- * `wizard` - the wizard instance itself
+ * `wizard` - a dictionary representation of the wizard instance
Example:
diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt
index 473b17886a..9ec23449e3 100644
--- a/docs/ref/contrib/formtools/form-wizard.txt
+++ b/docs/ref/contrib/formtools/form-wizard.txt
@@ -390,8 +390,13 @@ Advanced ``WizardView`` methods
The default template context variables are:
* Any extra data the storage backend has stored
- * ``form`` -- form instance of the current step
- * ``wizard`` -- the wizard instance itself
+ * ``wizard`` -- a dictionary representation of the wizard instance with the
+ 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::