mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #35436 -- Fixed displaying Unicode chars in forms.HStoreField.
This commit is contained in:
@@ -20,7 +20,7 @@ class HStoreField(forms.CharField):
|
||||
|
||||
def prepare_value(self, value):
|
||||
if isinstance(value, dict):
|
||||
return json.dumps(value)
|
||||
return json.dumps(value, ensure_ascii=False)
|
||||
return value
|
||||
|
||||
def to_python(self, value):
|
||||
|
||||
Reference in New Issue
Block a user