summaryrefslogtreecommitdiff
path: root/tests/admin_utils
diff options
context:
space:
mode:
authorQi Zhao <zhaoqi99@outlook.com>2020-10-08 21:51:14 +0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-09 08:14:17 +0200
commitde81676b51e4dad510ef387c3ae625f9091fe57f (patch)
treece5fb99bee30e6680cd7250dbf9d9b1467c8588f /tests/admin_utils
parentb79088306513d5ed76d31ac40ab3c15f858946ea (diff)
downloaddjango-de81676b51e4dad510ef387c3ae625f9091fe57f.tar.gz
Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and read-only JSONField values in admin.
Diffstat (limited to 'tests/admin_utils')
-rw-r--r--tests/admin_utils/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py
index a7594deda8..ce9f94dbb9 100644
--- a/tests/admin_utils/tests.py
+++ b/tests/admin_utils/tests.py
@@ -186,6 +186,7 @@ class UtilsTests(SimpleTestCase):
({'a': {'b': 'c'}}, '{"a": {"b": "c"}}'),
(['a', 'b'], '["a", "b"]'),
('a', '"a"'),
+ ({'a': '你好 世界'}, '{"a": "你好 世界"}'),
({('a', 'b'): 'c'}, "{('a', 'b'): 'c'}"), # Invalid JSON.
]
for value, display_value in tests: