Opened 8 years ago

Closed 8 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: UI/UX:


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 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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