1
0
mirror of https://github.com/django/django.git synced 2025-07-04 01:39:20 +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:
Adrian Holovaty 2008-01-02 05:30:34 +00:00
parent c79babb488
commit c080e441f3

View File

@ -201,6 +201,8 @@ class AdminSite(object):
"""
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 not request.POST.has_key(LOGIN_FORM_KEY):
if request.POST: