Django

Code

Changeset 7266

Show
Ignore:
Timestamp:
03/17/08 11:56:05 (6 months ago)
Author:
adrian
Message:

Fixed the inevitable ReST errors in docs/form_wizard.txt

Files:

Legend:

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

    r7265 r7266  
    4242just have to do these things: 
    4343 
    44     # Define a number of ``django.newforms`` ``Form`` classes -- one per wizard 
    45       page. 
    46     # Create a ``FormWizard`` class that specifies what to do once all of your 
    47       forms have been submitted and validated. This also lets you override some 
    48       of the wizard's behavior. 
    49     # Create some templates that render the forms. You can define a single, 
    50       generic template to handle every one of the forms, or you can define a 
    51       specific template for each form. 
    52     # Point your URLconf at your ``FormWizard`` class. 
     44    1. Define a number of ``django.newforms`` ``Form`` classes -- one per wizard 
     45      page. 
     46    2. Create a ``FormWizard`` class that specifies what to do once all of your 
     47      forms have been submitted and validated. This also lets you override some 
     48      of the wizard's behavior. 
     49    3. Create some templates that render the forms. You can define a single, 
     50      generic template to handle every one of the forms, or you can define a 
     51      specific template for each form. 
     52    4. Point your URLconf at your ``FormWizard`` class. 
    5353 
    5454Defining ``Form`` classes 
     
    9898 
    9999In this simplistic example, rather than perform any database operation, the 
    100 method simply renders a template of the validated data:: 
     100method simply renders a template of the validated data:: 
    101101 
    102102    from django.shortcuts import render_to_response 
     
    135135each form.) 
    136136 
    137 This template expects the following context:: 
     137This template expects the following context: 
    138138 
    139139    * ``step_field`` -- The name of the hidden field containing the step.