Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed an unnecessary import

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d14eb13992e782b2dfa7f2633b38a87e34efd45e 1 parent 0638ba5
@spookylukey spookylukey authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 django/contrib/auth/middleware.py
View
4 django/contrib/auth/middleware.py
@@ -4,10 +4,8 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.