Skip to content

Commit 337ba21

Browse files
authored
- Update the message to be consistent with the Django HttpResponseBase class. (#9287)
1 parent 2d8e9ad commit 337ba21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def finalize_response(self, request, response, *args, **kwargs):
421421
"""
422422
# Make the error obvious if a proper response is not returned
423423
assert isinstance(response, HttpResponseBase), (
424-
'Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` '
424+
'Expected a `Response`, `HttpResponse` or `StreamingHttpResponse` '
425425
'to be returned from the view, but received a `%s`'
426426
% type(response)
427427
)

0 commit comments

Comments
 (0)