Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…Robert Myers.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1e3d035fcc1811b6b8028655784e19caaedc281f 1 parent 5aea495
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/modeltests/test_client/
2  tests/modeltests/test_client/
@@ -26,10 +26,10 @@ def redirect_view(request):
"A view that redirects all requests to the GET view"
return HttpResponseRedirect('/test_client/get_view/')
def login_protected_view(request):
"A simple view that is login protected."
t = Template('This is a login protected test. Username is {{ user.username }}.', name='Login Template')
c = Context({'user': request.user})
return HttpResponse(t.render(c))
+login_protected_view = login_required(login_protected_view)
Please sign in to comment.
Something went wrong with that request. Please try again.