Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed Python 2.4-ism in modeltests/test_client. Thanks for the find, …

…Robert Myers.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1e3d035fcc1811b6b8028655784e19caaedc281f 1 parent 5aea495
Jacob Kaplan-Moss authored January 29, 2007

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

  1. 2  tests/modeltests/test_client/views.py
2  tests/modeltests/test_client/views.py
@@ -26,10 +26,10 @@ def redirect_view(request):
26 26
     "A view that redirects all requests to the GET view"
27 27
     return HttpResponseRedirect('/test_client/get_view/')
28 28
     
29  
-@login_required
30 29
 def login_protected_view(request):
31 30
     "A simple view that is login protected."
32 31
     t = Template('This is a login protected test. Username is {{ user.username }}.', name='Login Template')
33 32
     c = Context({'user': request.user})
34 33
     
35 34
     return HttpResponse(t.render(c))
  35
+login_protected_view = login_required(login_protected_view)

0 notes on commit 1e3d035

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