Changes between Initial Version and Version 1 of Ticket #17296, comment 3
- Timestamp:
- Dec 7, 2011, 8:02:52 AM (13 years ago)
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 1 Sorry I explanation was wrong, But issue persist. Please check `staff_member_required` decorator we can see the code as below 3 2 3 {{{ 4 4 defaults = { 5 5 'template_name': 'admin/login.html', … … 12 12 } 13 13 return login(request, **defaults) 14 }}} 14 15 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.16 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. 16 17 Please verify the same. 17 18 19 20 ''EDIT(aaugustin): fixed formatting.''