Skip to content
Browse files

Fixed #2931 -- Changed 'if request.POST' to 'if request.method == POS…

…T' in docs/sessions.txt

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 44bcc4e commit d1757daf0fa264fa2fb3a8d41848d74b228c4c22 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/sessions.txt
2 docs/sessions.txt
@@ -141,7 +141,7 @@ Do this after you've verified that the test cookie worked.
Here's a typical usage example::
def login(request):
- if request.POST:
+ if request.method == 'POST':
if request.session.test_cookie_worked():
return HttpResponse("You're logged in.")

0 comments on commit d1757da

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