mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user