#16256: More class based views: formsets derived generic views
---------------------------------------+-------------------------------
               Reporter:  rasca        |          Owner:  rasca
                   Type:  New feature  |         Status:  new
              Milestone:  1.4          |      Component:  Generic views
                Version:  1.3          |       Severity:  Normal
             Resolution:               |       Keywords:
           Triage Stage:  Accepted     |      Has patch:  1
    Needs documentation:  1            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+-------------------------------

Comment (by AndrewIngram):

 I think you may have introduced too much in one go, I think this can all
 be broken down into discrete things that need to be built. The way I see
 it is like this (I haven't achieved all of this with my own implementation
 yet):

 1. FormSetView and ModelFormSet view should mimic FormView and
 ModelFormView as closely as possible. In the same way that ModelFormMixin
 extends FormMixin and SingleObjectMixin, ModelFormSetView should extend
 FormSetMixin and MultipleObjectMixin, this way we get stuff like
 pagination for free (I haven't done this yet, but it was part of the
 plan).
 2. For InlineFormSetView, I think we need to respect the API for
 inline_formsets, ie it just simplifies building these formsets. Your
 implementation of this view includes the form for the owner model, which I
 think is too much functionality, it's part of the bigger problem of
 finding a mechanism to combine various forms and formsets into a single
 view.
 3. Once we have established the functionality for creating views with
 single formsets, we can start looking at ways to bridge the gap between
 (for example) the needs of the admin and the basic formset views.

 I must confess that I've not got my head around all of what you've done.
 What is the purpose of the EnhancedFormset objects you've introduced?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16256#comment:11>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to