Ticket #5801: decorators.py.diff

File decorators.py.diff, 1020 bytes (added by erny, 17 years ago)

File converted to patch rules in contrib page (.diff and relative to django root)

  • django/contrib/admin/views/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