Ticket #8567: 8567.diff

File 8567.diff, 1.1 KB (added by Tim Graham, 15 years ago)

minor edits to existing patch

  • docs/ref/contrib/formtools/form-wizard.txt

     
    190190Note that ``previous_fields``, ``step_field`` and ``step0`` are all required
    191191for the wizard to work properly.
    192192
    193 Hooking the wizard into a URLconf
    194 =================================
     193Putting it all together
     194=======================
    195195
    196 Finally, give your new :class:`~django.contrib.formtools.wizard.FormWizard`
    197 object a URL in ``urls.py``. The wizard takes a list of your form objects as
    198 arguments::
     196The final two steps usually happen together:
    199197
     198    * Specify which forms to use in your wizard by passing the
     199      :class:`~django.contrib.formtools.wizard.FormWizard` constructor a list
     200      of :class:`~django.forms.Form` classes.
     201
     202    * Hook the wizard into a URLconf by creating in ``urlpatterns`` for it.
     203
     204Here's an example showing both steps together::
     205
    200206    from django.conf.urls.defaults import *
    201207    from mysite.testapp.forms import ContactForm1, ContactForm2, ContactWizard
    202208
Back to Top