Ticket #5801: decorators.py.diff
File decorators.py.diff, 1020 bytes (added by , 17 years ago) |
---|
-
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