mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
- Update the message to be consistent with the Django HttpResponseBase
class. (#9287)
This commit is contained in:
parent
2d8e9ad819
commit
337ba211e8
|
@ -421,7 +421,7 @@ class APIView(View):
|
||||||
"""
|
"""
|
||||||
# Make the error obvious if a proper response is not returned
|
# Make the error obvious if a proper response is not returned
|
||||||
assert isinstance(response, HttpResponseBase), (
|
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`'
|
'to be returned from the view, but received a `%s`'
|
||||||
% type(response)
|
% type(response)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user