1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: Removed stray SESSION_KEY import in contrib.auth.middleware. Thanks, Kieran

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-03-29 02:55:30 +00:00
parent b13ff1762e
commit 72f6ce935a

View File

@ -14,7 +14,6 @@ class LazyUser(object):
class AuthenticationMiddleware:
def process_request(self, request):
from django.contrib.auth.models import SESSION_KEY
assert hasattr(request, 'session'), "The Django authentication middleware requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'."
request.__class__.user = LazyUser()
return None