summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views/customadmin.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-12-02 00:44:35 +0000
committerJannis Leidel <jannis@leidel.info>2010-12-02 00:44:35 +0000
commitcc64fb5c4b4315a4ad66e21458e27ece57266847 (patch)
tree2f83c93a64b5abc395282eca9d17fc8b335fed1a /tests/regressiontests/admin_views/customadmin.py
parent07705ca12982b6a87cfd9f62723153fb94f151b2 (diff)
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
Diffstat (limited to 'tests/regressiontests/admin_views/customadmin.py')
-rw-r--r--tests/regressiontests/admin_views/customadmin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_views/customadmin.py b/tests/regressiontests/admin_views/customadmin.py
index 8cd262b860..c31d3794cd 100644
--- a/tests/regressiontests/admin_views/customadmin.py
+++ b/tests/regressiontests/admin_views/customadmin.py
@@ -5,9 +5,10 @@ from django.conf.urls.defaults import patterns
from django.contrib import admin
from django.http import HttpResponse
-import models
+import models, forms
class Admin2(admin.AdminSite):
+ login_form = forms.CustomAdminAuthenticationForm
login_template = 'custom_admin/login.html'
logout_template = 'custom_admin/logout.html'
index_template = 'custom_admin/index.html'