diff options
| author | SaJH <wogur981208@gmail.com> | 2024-05-08 22:41:33 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-05-10 09:42:07 +0200 |
| commit | f92ac845a9c75992120a5b5b219e607c19d3f0aa (patch) | |
| tree | c69deae2e815141469b3eb77d7f753b907b18a4a /tests/postgres_tests | |
| parent | d59066b90c2ef91a956c6682ed3d25bbb31bf216 (diff) | |
Fixed #35436 -- Fixed displaying Unicode chars in forms.HStoreField.
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_hstore.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_hstore.py b/tests/postgres_tests/test_hstore.py index 2aaad637c6..cac3eb742a 100644 --- a/tests/postgres_tests/test_hstore.py +++ b/tests/postgres_tests/test_hstore.py @@ -410,6 +410,13 @@ class TestFormField(PostgreSQLSimpleTestCase): form_w_hstore = HStoreFormTest({"f1": '{"a": 2}'}, initial={"f1": {"a": 1}}) self.assertTrue(form_w_hstore.has_changed()) + def test_prepare_value(self): + field = forms.HStoreField() + self.assertEqual( + field.prepare_value({"aira_maplayer": "Αρδευτικό δίκτυο"}), + '{"aira_maplayer": "Αρδευτικό δίκτυο"}', + ) + class TestValidator(PostgreSQLSimpleTestCase): def test_simple_valid(self): |
