mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Edited MySQL-specific check messages for grammar and consistency.
This commit is contained in:
@@ -191,11 +191,10 @@ class CharFieldTests(IsolatedModelsTestCase):
|
||||
errors = validator.check_field(field)
|
||||
expected = [
|
||||
Error(
|
||||
('Under mysql backend, the field cannot have a "max_length" '
|
||||
'greated than 255 when it is unique.'),
|
||||
'MySQL does not allow unique CharFields to have a max_length > 255.',
|
||||
hint=None,
|
||||
obj=field,
|
||||
id='E047',
|
||||
id='mysql.E001',
|
||||
)
|
||||
]
|
||||
self.assertEqual(errors, expected)
|
||||
|
||||
Reference in New Issue
Block a user