diff options
| author | Md. Sadaf Noor <sadaf2605@gmail.com> | 2016-07-03 12:59:47 +0600 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-12 13:46:49 -0400 |
| commit | 5d8332aaee77c8e598e93f67fa9061538d98b54f (patch) | |
| tree | afc4e51a73738065de79b15b0a60c2060610e907 /docs | |
| parent | a01d3d5776c8acb56ce4d54ab30aa381e1ecee63 (diff) | |
[1.10.x] Fixed #26831 -- Documented session data must be JSON encodable for JSONSerializer.
Backport of 1f82b857ceb75f2d7a68e79c6a00c30bfe7f1318 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/sessions.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index 1e3970e9d2..7366ea2d6d 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -348,6 +348,9 @@ Bundled serializers >>> request.session['0'] '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 of JSON serialization. |
