mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
newforms-admin: Fixed #5827 -- Added missing import to django/contrib/admin/sites.py. Thanks, andreas@pelme.se
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6988 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c79babb488
commit
c080e441f3
@ -201,6 +201,8 @@ class AdminSite(object):
|
|||||||
"""
|
"""
|
||||||
Displays the login form for the given HttpRequest.
|
Displays the login form for the given HttpRequest.
|
||||||
"""
|
"""
|
||||||
|
from django.contrib.auth.models import User
|
||||||
|
|
||||||
# If this isn't already the login page, display it.
|
# If this isn't already the login page, display it.
|
||||||
if not request.POST.has_key(LOGIN_FORM_KEY):
|
if not request.POST.has_key(LOGIN_FORM_KEY):
|
||||||
if request.POST:
|
if request.POST:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user