Ticket #7553: 7553.diff

File 7553.diff, 696 bytes (added by Michael Newman, 16 years ago)

Simple patch that uses the request path to get the response from model_page instead

  • django/contrib/admin/sites.py

     
    252252                        # overwrite request.POST with the saved post_data, and continue
    253253                        request.POST = post_data
    254254                        request.user = user
    255                         return None
     255                        return self.model_page(request, *request.path.split('/')[-4:-1])
    256256                    else:
    257257                        request.session.delete_test_cookie()
    258258                        return http.HttpResponseRedirect(request.path)
Back to Top