diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-05-02 22:10:12 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-05-02 22:10:12 +0000 |
| commit | 1f88c7fc67ff982e681f44db6f67e95f4fd8f690 (patch) | |
| tree | 396f220f48b1931a0eb61f759fc290be27de0b27 /docs | |
| parent | d82860ec073b7ecbc8c9c863f972f2dd1bc956e5 (diff) | |
Fixed #4201 -- Fixed pre-MR style code example in docs/sessions.txt. Thanks, Collin Grady
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5140 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 55fbc2c3da..c7124ba703 100644 --- a/docs/sessions.txt +++ b/docs/sessions.txt @@ -107,7 +107,7 @@ posts a comment. It doesn't let a user post a comment more than once:: This simplistic view logs in a "member" of the site:: def login(request): - m = members.get_object(username__exact=request.POST['username']) + m = Member.objects.get(username=request.POST['username']) if m.password == request.POST['password']: request.session['member_id'] = m.id return HttpResponse("You're logged in.") |
