#17296: staff_login_required decorator redirecting  to default Login redirect
instead of requested
-------------------------------------+-------------------------------------
     Reporter:  ayarshabeer          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  reopened
    Component:  HTTP handling        |                  Version:  1.3
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Design
    Has patch:  0                    |  decision needed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by aaugustin):

 * stage:  Unreviewed => Design decision needed


Comment:

 If I understood you correctly, the patch I just attached would resolve
 your problem. Could you confirm?

 ----

 The fact that `staff_member_required` is an undocumented function purely
 designed for internal use by the `admin` and `admindocs` contrib apps
 still stands.

 It contains hardcoded values that make it unsuitable for general use:
 {{{
             'template_name': 'admin/login.html',
             'authentication_form': AdminAuthenticationForm,
 }}}

 I'm not sure the patch I uploaded wouldn't have side effects, and I'm
 reluctant to change this function, since it appears to work correctly
 within the `admin` and `admindocs` contrib apps.

 If you want a different behavior, you can always implement your own
 version of this decorator.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17296#comment:4>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to