mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
[1.10.x] Fixed #26831 -- Documented session data must be JSON encodable for JSONSerializer.
Backport of 1f82b857ce from master
This commit is contained in:
committed by
Tim Graham
parent
a01d3d5776
commit
5d8332aaee
@@ -348,6 +348,9 @@ Bundled serializers
|
|||||||
>>> request.session['0']
|
>>> request.session['0']
|
||||||
'bar'
|
'bar'
|
||||||
|
|
||||||
|
Similarly, data that can't be encoded in JSON, such as non-UTF8 bytes like
|
||||||
|
``'\xd9'`` (which raises :exc:`UnicodeDecodeError`), can't be stored.
|
||||||
|
|
||||||
See the :ref:`custom-serializers` section for more details on limitations
|
See the :ref:`custom-serializers` section for more details on limitations
|
||||||
of JSON serialization.
|
of JSON serialization.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user