From ba3d5272b5dc818dd7dfa589ea3fdf79cc4252a7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 17 Mar 2008 17:26:02 +0000 Subject: [PATCH] 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 --- docs/form_wizard.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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" %}