#29508: Simplify overriding `login_form` in AdminSite
-------------------------------------+-------------------------------------
Reporter: Rémi Lapeyre | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:
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 Tim Graham):
Right, you can't load any models in an app's `__init__.py`. You could
empty that file and use references like this:
{{{
from myadmin.sites import site
from django.urls import path
urlpatterns = [
path('admin/', site.urls),
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29508#comment:4>
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.36445eed48a2656e5b3a3959e24d9a63%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.