Ticket #5775: staff_member_required.patch
File staff_member_required.patch, 1.3 KB (added by , 17 years ago) |
---|
-
AUTHORS
328 328 ymasuda@ethercube.com 329 329 Jarek Zgoda <jarek.zgoda@gmail.com> 330 330 Cheng Zhang 331 Johan De Taeye <jdetaeye@frepple.com> 331 332 332 333 A big THANK YOU goes to: 333 334 -
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