#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 had a go at my own implementation of what you've done with regards to
 editing inline formsets alongside a model (but I didn't touch the admin
 itself), the logic is nearly identical to your solution (largely
 coincidence, but I did borrow ideas for naming conventions), but I've done
 my best to mimic the structure of Django's existing class-based views for
 editing objects. The two new concrete views are:

 - CreateWithInlinesView
 - UpdateWithInlinesView

 Each can take an inlines attribute which is a list of classes that extend
 InlineFormSet (which itself is just a bit of trickery around my
 InlineFormSetMixin which is used for the much simpler InlineFormSetView).

 Code is here: https://github.com/AndrewIngram/django-extra-
 views/blob/master/extra_views/advanced.py

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16256#comment:13>
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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to