mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user