diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/http/response.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/django/http/response.py b/django/http/response.py index 99f0020335..901501dad1 100644 --- a/django/http/response.py +++ b/django/http/response.py @@ -402,6 +402,13 @@ class StreamingHttpResponse(HttpResponseBase): # See the `streaming_content` property methods. self.streaming_content = streaming_content + def __repr__(self): + return '<%(cls)s status_code=%(status_code)d%(content_type)s>' % { + 'cls': self.__class__.__qualname__, + 'status_code': self.status_code, + 'content_type': self._content_type_for_repr, + } + @property def content(self): raise AttributeError( |
