Opened 18 years ago
Closed 18 years ago
#4201 closed (fixed)
sessions example appears to be using pre-MR style
Reported by: | 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.")
Note:
See TracTickets
for help on using tickets.
(In [5140]) Fixed #4201 -- Fixed pre-MR style code example in docs/sessions.txt. Thanks, Collin Grady