Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

magic-removal: Fixed #1494 -- Added missing import to django.contirb.…

…auth.decorators

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8addbfa0d2a64dd0eb970571a0038368cffe6a26 1 parent 7a0b04f
Adrian Holovaty authored March 12, 2006

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/contrib/auth/decorators.py
3  django/contrib/auth/decorators.py
... ...
@@ -1,4 +1,5 @@
1 1
 from django.contrib.auth import LOGIN_URL, REDIRECT_FIELD_NAME
  2
+from django.http import HttpResponseRedirect
2 3
 
3 4
 def user_passes_test(test_func, login_url=LOGIN_URL):
4 5
     """
@@ -11,7 +12,7 @@ def _checklogin(request, *args, **kwargs):
11 12
             if test_func(request.user):
12 13
                 return view_func(request, *args, **kwargs)
13 14
             return HttpResponseRedirect('%s?%s=%s' % (login_url, REDIRECT_FIELD_NAME, request.path))
14  
-            
  15
+
15 16
         return _checklogin
16 17
     return _dec
17 18
 

0 notes on commit 8addbfa

Please sign in to comment.
Something went wrong with that request. Please try again.