Django

Code

Changeset 7267

Show
Ignore:
Timestamp:
03/17/08 12:26:02 (6 months ago)
Author:
adrian
Message:

Added section to docs/form_wizard.txt about extra_context. Thanks, Honza

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/form_wizard.txt

    r7266 r7267  
    147147      that you'll need to run this through the ``safe`` template filter, to 
    148148      prevent auto-escaping, because it's raw HTML. 
     149 
     150It will also be passed any objects in ``extra_context``, which is a dictionary 
     151you can specify that contains extra values to add to the context. You can 
     152specify it in two ways: 
     153 
     154    * Set the ``extra_context`` attribute on your ``FormWizard`` subclass to a 
     155      dictionary. 
     156 
     157    * Pass ``extra_context`` as extra parameters in the URLconf. 
    149158 
    150159Here's a full example template::