Removed an unnecessary import

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2011-06-06 12:11:48 +00:00
parent 0638ba5bba
commit d14eb13992
1 changed files with 1 additions and 3 deletions

View File

@ -4,10 +4,8 @@ from django.utils.functional import SimpleLazyObject
def get_user(request): def get_user(request):
from django.contrib.auth import get_user
if not hasattr(request, '_cached_user'): if not hasattr(request, '_cached_user'):
request._cached_user = get_user(request) request._cached_user = auth.get_user(request)
return request._cached_user return request._cached_user