#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 Carlton Gibson):

 Hi Rémi.

 I don't think there's anything you can't do here. The only constraint is
 that you don't **use** models at import time.

 If you keep your `register` calls in `admin.py` and route the URLs as Tim
 suggests, keeping your `__init__.py` files clean, you will be able to do
 what you want avoiding the `AppRegistryNotReady` exception.

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

Reply via email to