Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 1f88c7fc67ff982e681f44db6f67e95f4fd8f690 1 parent d82860e
Adrian Holovaty authored May 02, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/sessions.txt
2  docs/sessions.txt
@@ -107,7 +107,7 @@ posts a comment. It doesn't let a user post a comment more than once::
107 107
 This simplistic view logs in a "member" of the site::
108 108
 
109 109
     def login(request):
110  
-        m = members.get_object(username__exact=request.POST['username'])
  110
+        m = Member.objects.get(username=request.POST['username'])
111 111
         if m.password == request.POST['password']:
112 112
             request.session['member_id'] = m.id
113 113
             return HttpResponse("You're logged in.")

0 notes on commit 1f88c7f

Please sign in to comment.
Something went wrong with that request. Please try again.