#24294: admin.views.decorators.staff_member_required raises an exception when
passed a valid argument
-------------------------------+--------------------------------------
Reporter: akulakov | Owner: akulakov
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by akulakov:
Old description:
> 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)
>
> e.g.:
> @staff_member_required(redirect_field_name='test')
> def v1(request):
> return HttpResponse("hi")
New description:
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)
e.g.::
@staff_member_required(redirect_field_name='test')
def v1(request):
return HttpResponse("hi")
--
--
Ticket URL: <https://code.djangoproject.com/ticket/24294#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.c141c73625cf6bb235ee3bb820acc60d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.