mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
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
This commit is contained in:
parent
d0aa7c820b
commit
ba3d5272b5
@ -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" %}
|
||||
|
Loading…
Reference in New Issue
Block a user