#27231: Initialize forms in ModelAdmin like View (i.e. add get_form_kwargs to
contrib.admin)
-------------------------------+--------------------------------------
     Reporter:  Thomas Hauk    |                    Owner:  nobody
         Type:  New feature    |                   Status:  closed
    Component:  contrib.admin  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Thomas Hauk):

 Hi Tim -- I think this might be a case of "the perfect is the enemy of the
 good" here.

 I agree that the admin should be completely refactored to be view-based,
 but that could be years of effort.

 Providing a `get_form_kwargs()` API here wouldn't be perfect but it would
 fix this particular leak in the abstraction...

--
Ticket URL: <https://code.djangoproject.com/ticket/27231#comment:9>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/074.1c05f130cac86d2a764f98e8242dba9a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to