Ticket #5775: staff_member_required_newadmin.patch

File staff_member_required_newadmin.patch, 1.4 KB (added by jdetaeye, 17 years ago)

same patch, now for newforms-admin

  • AUTHORS

     
    162162    Baurzhan Ismagulov <ibr@radix50.net>
    163163    james_027@yahoo.com
    164164    jcrasta@gmail.com
    165     jdetaeye
     165    jdetaeye <jdetaeye@frepple.com>
    166166    Zak Johnson <zakj@nox.cx>
    167167    Michael Josephson <http://www.sdjournal.com/>
    168168    jpellerin@gmail.com
  • 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