Opened 17 years ago

Closed 17 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: dev
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

Description

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.")

Change History (1)

comment:1 by Adrian Holovaty, 17 years ago

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