Ticket #11375: response-add-redirect.diff

File response-add-redirect.diff, 513 bytes (added by slurms, 6 years ago)
  • django/contrib/admin/options.py

     
    621621                post_url = '../'
    622622            else:
    623623                post_url = '../../../'
    624             return HttpResponseRedirect(post_url)
     624            return HttpResponseRedirect(request.POST.get('next', post_url))
    625625
    626626    def response_change(self, request, obj):
    627627        """
Back to Top