1
0
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:
薛丞宏
2015-10-23 21:12:49 +08:00
committed by Tim Graham
parent ca46dc323b
commit 2eab4acb3e
3 changed files with 6 additions and 6 deletions

View File

@@ -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