#18830: FormWizard with Formset and Form Fields mixed on same page
-----------------------------+------------------------------------
     Reporter:  jeff@…       |                    Owner:  nobody
         Type:  New feature  |                   Status:  closed
    Component:  Forms        |                  Version:  1.4
     Severity:  Normal       |               Resolution:  fixed
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+------------------------------------
Changes (by russellm):

 * status:  new => closed
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0
 * resolution:   => fixed
 * stage:  Unreviewed => Accepted


Comment:

 I'm going to mark this as accepted, but with a slightly broader scope than
 you've given the problem.

 This problem exists for form wizards, but it also exists for generic
 views, too. The root of the problem is that you need to be able to combine
 forms and formsets (or multiple forms and formsets) on a single page. This
 is true of a page of a wizard, but it's also true of a "FormView" as well.

 Now - the nice thing is that Forms and Formsets share a common interface
 -- that's why you're able to use a formset as a page in a wizard. To my
 mind, what we need to do here is write a container object that can wrap
 multiple forms and formsets,

 I've done this on some of my own projects, and the approach works fine;
 I've attached an example of the code you can use to do it. This needs a
 lot of work to turn it into a feature, but I think it's a feature worth
 adding.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18830#comment:1>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to