Changes between Initial Version and Version 1 of Ticket #17296, comment 3


Ignore:
Timestamp:
Dec 7, 2011, 8:02:52 AM (13 years ago)
Author:
Aymeric Augustin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17296, comment 3

    initial v1  
    1 Sorry I explanation was wrong, But issue persist. PLease check '''staff_member_required''' decorator we can see the code as below
    2  
     1Sorry I explanation was wrong, But issue persist. Please check `staff_member_required` decorator we can see the code as below
    32
     3{{{
    44defaults = {
    55            'template_name': 'admin/login.html',
     
    1212        }
    1313        return login(request, **defaults)
     14}}}
    1415
    15 redirect value is setting to extra context and calling the login method present in /admin/auth/views. In login method we can see that redirect_to is taken from request as '''''redirect_to = request.REQUEST.get(redirect_field_name, '')''''' but redirect value is present in extra_context. So value for redirect_to will be empty.
     16redirect value is setting to extra context and calling the login method present in /admin/auth/views. In login method we can see that redirect_to is taken from request as `redirect_to = request.REQUEST.get(redirect_field_name, '')` but redirect value is present in extra_context. So value for redirect_to will be empty.
    1617Please verify the same.
    17  
     18
     19
     20''EDIT(aaugustin): fixed formatting.''
Back to Top