summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
author薛丞宏 <ihcaoe@gmail.com>2015-10-23 21:12:49 +0800
committerTim Graham <timograham@gmail.com>2015-10-23 14:27:15 -0400
commit415837543e1b53adb3f039e7c5313ad462f6e598 (patch)
tree47c0562b1490b6c40678f874a683dbd639cb82b0 /docs/ref
parent244b7c930f6518024b75a8f87e9bf399cfc79f2f (diff)
[1.8.x] Clarified that the test client response content attribute is bytes.
Backport of 484edc81c1ebd195c333f3ea8d3f9ca882a17837 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/request-response.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 28b6576cdf..befbff0517 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -919,7 +919,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