diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-11-30 22:39:19 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-11-30 22:39:19 +0000 |
| commit | 4542f21fc1b82dd0faa7be634640d2173339cb1e (patch) | |
| tree | 1e0fb43c059c4c8657bb5c28fd60af051f194d92 /docs | |
| parent | 3afdd8850485c9119b50a5a736d3aa16b7b912fe (diff) | |
generic-auth: Merged to trunk [4148].
git-svn-id: http://code.djangoproject.com/svn/django/branches/generic-auth@4149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -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.") |
