- Update the message to be consistent with the Django HttpResponseBase class.

This commit is contained in:
Nguyễn Anh Bình 2024-03-16 03:46:20 +07:00 committed by GitHub
parent a677b09729
commit 2f495cf12a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,7 +421,7 @@ class APIView(View):
"""
# 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)
)