#159: Circular logout problem
-------------------------------+------------------------------------------
     Reporter:  Manuzhai       |                    Owner:  ashchristopher
         Type:  Bug            |                   Status:  assigned
    Component:  contrib.admin  |                  Version:
     Severity:  Normal         |               Resolution:
     Keywords:  admin logout   |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------------

Comment (by ojii):

 Replying to [comment:11 ashchristopher]:
 > Replying to [comment:10 ojii]:
 > > Patch looks okay, but how about just redirecting to admin:index when
 the user does not have perms and is on admin:logout?
 >
 >
 > Sorry - not quite sure I understand what you mean.

 In https://code.djangoproject.com/attachment/ticket/159/ticket159.diff in
 contrib/admin/sites.py:193 you set the REDIRECT_FIELD_NAME in
 extra_context, I propose return a HttpResponseRedirect to admin:index,
 which will then handle the login part anyway.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/159#comment:12>
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