Permalink
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...
1 parent 0638ba5 commit d14eb13992e782b2dfa7f2633b38a87e34efd45e @spookylukey spookylukey committed Jun 6, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 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

0 comments on commit d14eb13

Please sign in to comment.