#19880: form-wizard initial data example is wrong
-------------------------------------+-------------------------------------
     Reporter:  almalki              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  form-wizard          |             Triage Stage:  Accepted
  formwizard wizard                  |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  1                    |
-------------------------------------+-------------------------------------
Changes (by timo):

 * has_patch:  1 => 0


Comment:

 Whoops, I had meant to comment on this but I left the comment on the
 duplicate ticket instead.

 You can't initialize `ContactWizard` directly with a list of forms and the
 initial dict. The `as_view` call is correct, but then you need to pass
 `request` to the function that's returned. Maybe `RequestFactory` could be
 used for the example, but a session is also needed on the request so it
 seems a bit complicated to have this example use the shell.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19880#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to