Skip to content

Commit 903fb5f

Browse files
committed
Merge pull request #2255 from mathspace/charfield-default-message
Update CharField default min_length message.
2 parents 73a8056 + fa1ef33 commit 903fb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class CharField(Field):
509509
default_error_messages = {
510510
'blank': _('This field may not be blank.'),
511511
'max_length': _('Ensure this field has no more than {max_length} characters.'),
512-
'min_length': _('Ensure this field has no more than {min_length} characters.')
512+
'min_length': _('Ensure this field has at least {min_length} characters.')
513513
}
514514
initial = ''
515515
coerce_blank_to_null = False

0 commit comments

Comments
 (0)