mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #8342 -- Removed code from the admin that assumed that you can't login with an email address (nixed by r12634). Also refactored login code slightly to be DRY by using more of auth app's forms and views.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
07705ca129
commit
cc64fb5c4b
12 changed files with 296 additions and 216 deletions
|
@ -1459,6 +1459,13 @@ Path to a custom template that will be used by the admin site main index view.
|
|||
|
||||
Path to a custom template that will be used by the admin site login view.
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
.. attribute:: AdminSite.login_form
|
||||
|
||||
Subclass of :class:`~django.contrib.auth.forms.AuthenticationForm` that will
|
||||
be used by the admin site login view.
|
||||
|
||||
.. attribute:: AdminSite.logout_template
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue