#4201: sessions example appears to be using pre-MR style
--------------------------------------------------------+-------------------
Reporter: Collin Grady <[EMAIL PROTECTED]> | Owner: jacob
Status: new | Component:
Documentation
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------------------------+-------------------
Line 2 of the following example looks like pre-MR style for grabbing an
object:
{{{
def login(request):
m = members.get_object(username__exact=request.POST['username'])
if m.password == request.POST['password']:
request.session['member_id'] = m.id
return HttpResponse("You're logged in.")
else:
return HttpResponse("Your username and password didn't match.")
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/4201>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---