From d14eb13992e782b2dfa7f2633b38a87e34efd45e Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Mon, 6 Jun 2011 12:11:48 +0000 Subject: [PATCH] Removed an unnecessary import git-svn-id: http://code.djangoproject.com/svn/django/trunk@16332 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/middleware.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/django/contrib/auth/middleware.py b/django/contrib/auth/middleware.py index 1cd8ae5885..df616a9243 100644 --- a/django/contrib/auth/middleware.py +++ b/django/contrib/auth/middleware.py @@ -4,10 +4,8 @@ from django.utils.functional import SimpleLazyObject def get_user(request): - from django.contrib.auth import get_user - if not hasattr(request, '_cached_user'): - request._cached_user = get_user(request) + request._cached_user = auth.get_user(request) return request._cached_user