#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
-------------------------------+--------------------------------------
Changes (by akulakov):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


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)

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:1>
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.9a6ad424ec51d9b49e54b41c10c515a0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to