Opened 12 years ago

Closed 12 years ago

#4201 closed (fixed)

sessions example appears to be using pre-MR style

Reported by: Collin Grady <cgrady@…> Owned by: Jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


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'] =
        return HttpResponse("You're logged in.")
        return HttpResponse("Your username and password didn't match.")

Change History (1)

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [5140]) Fixed #4201 -- Fixed pre-MR style code example in docs/sessions.txt. Thanks, Collin Grady

Note: See TracTickets for help on using tickets.
Back to Top