#29508: Simplify overriding `login_form` in AdminSite
-------------------------------------+-------------------------------------
     Reporter:  Rémi Lapeyre         |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  contrib.admin        |                  Version:  2.0
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Rémi Lapeyre):

 > Right, you can't load any models in an app's __init__.py. You could
 empty that file and use references like this

 Yes, I understand that but isn't it weird that we can't get the exact same
 API when extending the admin? It seems more dev-friendly and less
 confusing to be able to replace `admin.site.register(MyModel)` by
 `myadmin.site.register(MyModel)` even if not everybody do this.

 The proposed patch does not increase the complexity of AdminSite but
 allows for this usage.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29508#comment:6>
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/069.9e508a5592cebf5da0b6b9b59c426b05%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to