From 5ba2297adcf9aae0e4f011401a765408c84d4bcf Mon Sep 17 00:00:00 2001 From: Yuri Hernani Heupa Date: Wed, 5 Nov 2014 15:26:14 -0200 Subject: [PATCH] Changed error message of CharField Changed the value of the min_length key of default error message in CharField --- rest_framework/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 8cc8e81ec..47cf88852 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -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