summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2008-03-17 17:26:02 +0000
committerAdrian Holovaty <adrian@holovaty.com>2008-03-17 17:26:02 +0000
commitba3d5272b5dc818dd7dfa589ea3fdf79cc4252a7 (patch)
tree9cb134dc50e5a891692972f5d09e56cfe03aea0d /docs
parentd0aa7c820b8e654bdf23382a08ba26d3e58a0a4b (diff)
Added section to docs/form_wizard.txt about extra_context. Thanks, Honza
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/form_wizard.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/form_wizard.txt b/docs/form_wizard.txt
index 51b09ca132..cd9e58ded1 100644
--- a/docs/form_wizard.txt
+++ b/docs/form_wizard.txt
@@ -147,6 +147,15 @@ This template expects the following context:
that you'll need to run this through the ``safe`` template filter, to
prevent auto-escaping, because it's raw HTML.
+It will also be passed any objects in ``extra_context``, which is a dictionary
+you can specify that contains extra values to add to the context. You can
+specify it in two ways:
+
+ * Set the ``extra_context`` attribute on your ``FormWizard`` subclass to a
+ dictionary.
+
+ * Pass ``extra_context`` as extra parameters in the URLconf.
+
Here's a full example template::
{% extends "base.html" %}