mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #2931 -- Changed 'if request.POST' to 'if request.method == POST' in docs/sessions.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
44bcc4e546
commit
d1757daf0f
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||
request.session.delete_test_cookie()
|
||||
return HttpResponse("You're logged in.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue