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
This commit is contained in:
Adrian Holovaty 2007-05-02 22:10:12 +00:00
parent d82860ec07
commit 1f88c7fc67
1 changed files with 1 additions and 1 deletions

View File

@ -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.")