Skip to content

Commit

Permalink
- Update the message to be consistent with the Django `HttpResponseBa…
Browse files Browse the repository at this point in the history
…se` class. (#9287)
  • Loading branch information
maycuatroi authored Mar 17, 2024
1 parent 2d8e9ad commit 337ba21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def finalize_response(self, request, response, *args, **kwargs):
"""
# Make the error obvious if a proper response is not returned
assert isinstance(response, HttpResponseBase), (
'Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` '
'Expected a `Response`, `HttpResponse` or `StreamingHttpResponse` '
'to be returned from the view, but received a `%s`'
% type(response)
)
Expand Down

0 comments on commit 337ba21

Please sign in to comment.