Ticket #8567: 8567-patch.diff
File 8567-patch.diff, 1.1 KB (added by , 16 years ago) |
---|
-
docs/ref/contrib/formtools/form-wizard.txt
190 190 Note that ``previous_fields``, ``step_field`` and ``step0`` are all required 191 191 for the wizard to work properly. 192 192 193 Hooking the wizard into a URLconf 194 ======================= ==========193 Putting it all together 194 ======================= 195 195 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:: 196 The final two steps usually happen together: 199 197 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 204 Here's an example showing both steps together:: 205 200 206 from django.conf.urls.defaults import * 201 207 from mysite.testapp.forms import ContactForm1, ContactForm2, ContactWizard 202 208