Skip to content

Commit

Permalink
Fixed #4201 -- Fixed pre-MR style code example in docs/sessions.txt. …
Browse files Browse the repository at this point in the history
…Thanks, Collin Grady

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 2, 2007
1 parent d82860e commit 1f88c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sessions.txt
Expand Up @@ -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.")
Expand Down

0 comments on commit 1f88c7f

Please sign in to comment.