Ticket #12571: test_client_request.diff

File test_client_request.diff, 595 bytes (added by rvdrijst, 15 years ago)

adds the wsgi_request to the client response

  • django/test/client.py

     
    7777            for middleware_method in self._response_middleware:
    7878                response = middleware_method(request, response)
    7979            response = self.apply_response_fixes(request, response)
     80            response.wsgi_request = request
    8081        finally:
    8182            signals.request_finished.disconnect(close_connection)
    8283            signals.request_finished.send(sender=self.__class__)
Back to Top