diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2011-06-06 12:11:48 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2011-06-06 12:11:48 +0000 |
| commit | d14eb13992e782b2dfa7f2633b38a87e34efd45e (patch) | |
| tree | bb0fc08bc6a3980e7bd218bb9867049c622333b1 /django/contrib/auth/middleware.py | |
| parent | 0638ba5bba14a0051aa7390b6f595907957c0e12 (diff) | |
Removed an unnecessary import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/auth/middleware.py')
| -rw-r--r-- | django/contrib/auth/middleware.py | 4 |
1 files changed, 1 insertions, 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 |
