Ticket #5775: staff_member_required_newadmin.patch
File staff_member_required_newadmin.patch, 1.4 KB (added by , 17 years ago) |
---|
-
AUTHORS
162 162 Baurzhan Ismagulov <ibr@radix50.net> 163 163 james_027@yahoo.com 164 164 jcrasta@gmail.com 165 jdetaeye 165 jdetaeye <jdetaeye@frepple.com> 166 166 Zak Johnson <zakj@nox.cx> 167 167 Michael Josephson <http://www.sdjournal.com/> 168 168 jpellerin@gmail.com -
django/contrib/admin/views/decorators.py
22 22 post_data = _encode_post_data({}) 23 23 return render_to_response('admin/login.html', { 24 24 'title': _('Log in'), 25 'app_path': request. path,25 'app_path': request.get_full_path(), 26 26 'post_data': post_data, 27 27 'error_message': error_message 28 28 }, context_instance=template.RequestContext(request)) … … 99 99 return view_func(request, *args, **kwargs) 100 100 else: 101 101 request.session.delete_test_cookie() 102 return http.HttpResponseRedirect(request. path)102 return http.HttpResponseRedirect(request.get_full_path()) 103 103 else: 104 104 return _display_login_form(request, ERROR_MESSAGE) 105 105