Author: adrian
Date: 2007-05-02 17:10:12 -0500 (Wed, 02 May 2007)
New Revision: 5140
Modified:
django/trunk/docs/sessions.txt
Log:
Fixed #4201 -- Fixed pre-MR style code example in docs/sessions.txt. Thanks,
Collin Grady
Modified: django/trunk/docs/sessions.txt
===================================================================
--- django/trunk/docs/sessions.txt 2007-05-02 20:31:15 UTC (rev 5139)
+++ django/trunk/docs/sessions.txt 2007-05-02 22:10:12 UTC (rev 5140)
@@ -107,7 +107,7 @@
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.")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---