Ticket #6656: error.diff

File error.diff, 756 bytes (added by Purdea Andrei, 17 years ago)
  • django/contrib/admin/sites.py

     
    245245                        # overwrite request.POST with the saved post_data, and continue
    246246                        request.POST = post_data
    247247                        request.user = user
    248                         return view_func(request, *args, **kwargs)
     248                        from django.core.urlresolvers import resolve
     249                        r = resolve(request.path)
     250                        return r[0](request, *r[1], **r[2])
    249251                    else:
    250252                        request.session.delete_test_cookie()
    251253                        return http.HttpResponseRedirect(request.path)
Back to Top