Opened 10 years ago
Last modified 10 years ago
#24294 closed Bug
admin.views.decorators.staff_member_required raises an exception when passed a valid argument — at Version 3
Reported by: | andrei kulakov | Owned by: | andrei kulakov |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
When a valid argument is given to staff_member_required decorator, it raises this confusing error:
staff_member_required() takes at least 1 argument (1 given)
@staff_member_required(redirect_field_name='test') def v1(request): return HttpResponse("hi")
Change History (3)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
comment:3 by , 10 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.