From de81676b51e4dad510ef387c3ae625f9091fe57f Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Thu, 8 Oct 2020 21:51:14 +0800 Subject: Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and read-only JSONField values in admin. --- tests/admin_utils/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/admin_utils') 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: -- cgit v1.3