Merge pull request #2031 from YuriHeupa/patch-1

Changed error message of min_length validator in CharField
This commit is contained in:
Tom Christie 2014-11-05 20:51:58 +00:00
commit 7daeb5f782

View File

@ -470,7 +470,7 @@ class CharField(Field):
default_error_messages = {
'blank': _('This field may not be blank.'),
'max_length': _('Ensure this field has no more than {max_length} characters.'),
'min_length': _('Ensure this field has no more than {min_length} characters.')
'min_length': _('Ensure this field has more than {min_length} characters.')
}
initial = ''
coerce_blank_to_null = False