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:
parent
0638ba5bba
commit
d14eb13992
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue