#310 closed defect (fixed)
Auth bug in generic views
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | major | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In jango.generic.create_update
if login_required and request.user.is_anonymous(): return redirect_to_login(request)
Must be:
if login_required and request.user.is_anonymous(): return redirect_to_login(request.path)
Coz redirect_to_login() requires a path like argument, not request
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in [492]