Ticket #8567: 8567-patch.diff

File 8567-patch.diff, 1.1 KB (added by ElliottM, 6 years ago)
  • 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. This is done by passing the
     199      :class:`~django.contrib.formtools.wizard.FormWizard` constructor a list
     200      of :class:`~django.forms.Form` classes.
     201
     202    * Create an entry in ``urls.py`` for the wizard.
     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