diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-11-27 00:08:46 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-11-27 00:08:46 +0000 |
| commit | d1757daf0fa264fa2fb3a8d41848d74b228c4c22 (patch) | |
| tree | e1c2798651e9bf43b88580cd6848441a46607cf1 | |
| parent | 44bcc4e546d4e55eca5815c4d96bd40f526adbba (diff) | |
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
| -rw-r--r-- | docs/sessions.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sessions.txt b/docs/sessions.txt index d39f42c3bf..dd4a581d91 100644 --- a/docs/sessions.txt +++ b/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(): request.session.delete_test_cookie() return HttpResponse("You're logged in.") |
