diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2008-01-02 05:30:34 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2008-01-02 05:30:34 +0000 |
| commit | c080e441f347ad252be5e2d4dc56e9f43fce88cc (patch) | |
| tree | 1cb05511841400a0183eaa48626c1f912c872782 | |
| parent | c79babb4887404fccaf0e28b58651cfe2052f218 (diff) | |
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
| -rw-r--r-- | django/contrib/admin/sites.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index 4e95a06bba..6c6f47e388 100644 --- a/django/contrib/admin/sites.py +++ b/django/contrib/admin/sites.py @@ -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: |
