mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[1.9.x] Clarified that the test client response content attribute is bytes.
Backport of 484edc81c1 from master
This commit is contained in:
@@ -949,7 +949,7 @@ Typical usage could look like::
|
||||
>>> from django.http import JsonResponse
|
||||
>>> response = JsonResponse({'foo': 'bar'})
|
||||
>>> response.content
|
||||
'{"foo": "bar"}'
|
||||
b'{"foo": "bar"}'
|
||||
|
||||
|
||||
Serializing non-dictionary objects
|
||||
|
||||
Reference in New Issue
Block a user