Ticket #5801: decorators.py.patch

File decorators.py.patch, 939 bytes (added by erevilla@…, 17 years ago)

Patch for contrib/admin/views/decorators.py to treat GET parameters in login-redirect cycle for pages which need login.

  • decorators.py

     
    2222        post_data = _encode_post_data({})
    2323    return render_to_response('admin/login.html', {
    2424        'title': _('Log in'),
    25         'app_path': request.path,
     25        'app_path': request.get_full_path(),
    2626        'post_data': post_data,
    2727        'error_message': error_message
    2828    }, context_instance=template.RequestContext(request))
     
    9999                        return view_func(request, *args, **kwargs)
    100100                    else:
    101101                        request.session.delete_test_cookie()
    102                         return http.HttpResponseRedirect(request.path)
     102                        return http.HttpResponseRedirect(request.get_full_path())
    103103            else:
    104104                return _display_login_form(request, ERROR_MESSAGE)
    105105
Back to Top