mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30400 -- Improved typography of user facing strings.
Thanks Claude Paroz for assistance with translations.
This commit is contained in:
committed by
Mariusz Felisiak
parent
2b03e8e9e8
commit
42b9a23267
@@ -251,7 +251,7 @@ class TestValidation(PostgreSQLSimpleTestCase):
|
||||
with self.assertRaises(exceptions.ValidationError) as cm:
|
||||
field.clean({'a': 1}, None)
|
||||
self.assertEqual(cm.exception.code, 'not_a_string')
|
||||
self.assertEqual(cm.exception.message % cm.exception.params, 'The value of "a" is not a string or null.')
|
||||
self.assertEqual(cm.exception.message % cm.exception.params, 'The value of “a” is not a string or null.')
|
||||
|
||||
def test_none_allowed_as_value(self):
|
||||
field = HStoreField()
|
||||
|
||||
@@ -426,7 +426,7 @@ class TestFormField(PostgreSQLSimpleTestCase):
|
||||
field = forms.JSONField()
|
||||
with self.assertRaises(exceptions.ValidationError) as cm:
|
||||
field.clean('{some badly formed: json}')
|
||||
self.assertEqual(cm.exception.messages[0], "'{some badly formed: json}' value must be valid JSON.")
|
||||
self.assertEqual(cm.exception.messages[0], '“{some badly formed: json}” value must be valid JSON.')
|
||||
|
||||
def test_formfield(self):
|
||||
model_field = JSONField()
|
||||
|
||||
Reference in New Issue
Block a user