1
0
mirror of https://github.com/django/django.git synced 2025-10-29 08:36:09 +00:00

Edited MySQL-specific check messages for grammar and consistency.

This commit is contained in:
Russell Keith-Magee
2014-03-03 14:31:55 +08:00
parent 55ba92a9c9
commit f7587b20da
2 changed files with 4 additions and 6 deletions

View File

@@ -22,11 +22,10 @@ class DatabaseValidation(BaseDatabaseValidation):
and (field.max_length is None or int(field.max_length) > 255)):
errors.append(
checks.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',
)
)
return errors