mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[soc2009/model-validation] no need to redefine default_error_messages that don'w differ from superclass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -229,8 +229,6 @@ class IntegerField(Field):
|
|||||||
class FloatField(IntegerField):
|
class FloatField(IntegerField):
|
||||||
default_error_messages = {
|
default_error_messages = {
|
||||||
'invalid': _(u'Enter a number.'),
|
'invalid': _(u'Enter a number.'),
|
||||||
'max_value': _(u'Ensure this value is less than or equal to %s.'),
|
|
||||||
'min_value': _(u'Ensure this value is greater than or equal to %s.'),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def to_python(self, value):
|
def to_python(self, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user