Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #19880 - Fixed an error in the form wizard initial_dict example.

Thanks almalki for the report.
  • Loading branch information...
commit 9b97f01dea093de484366924842c89550472d0b6 1 parent 31bcb10
Tim Graham authored February 23, 2013
4  docs/ref/contrib/formtools/form-wizard.txt
@@ -537,7 +537,9 @@ Providing initial data for the forms
537 537
         ...     '0': {'subject': 'Hello', 'sender': 'user@example.com'},
538 538
         ...     '1': {'message': 'Hi there!'}
539 539
         ... }
540  
-        >>> wiz = ContactWizard.as_view([ContactForm1, ContactForm2], initial_dict=initial)
  540
+        >>> # This example is illustrative only and isn't meant to be run in
  541
+        >>> # the shell since it requires an HttpRequest to pass to the view.
  542
+        >>> wiz = ContactWizard.as_view([ContactForm1, ContactForm2], initial_dict=initial)(request)
541 543
         >>> form1 = wiz.get_form('0')
542 544
         >>> form2 = wiz.get_form('1')
543 545
         >>> form1.initial

0 notes on commit 9b97f01

Please sign in to comment.
Something went wrong with that request. Please try again.