Ticket #5775: staff_member_required.patch

File staff_member_required.patch, 1.3 KB (added by jdetaeye, 8 years ago)

patch (appending me also to the list of authors)

  • AUTHORS

     
    328328    ymasuda@ethercube.com
    329329    Jarek Zgoda <jarek.zgoda@gmail.com>
    330330    Cheng Zhang
     331    Johan De Taeye <jdetaeye@frepple.com>
    331332
    332333A big THANK YOU goes to:
    333334
  • 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