mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-25 23:50:01 +03:00
Update rest_framework/fields.py
This commit is contained in:
parent
b487f57738
commit
00cf78362d
|
@ -920,7 +920,7 @@ class FloatField(Field):
|
||||||
'max_value': _('Ensure this value is less than or equal to {max_value}.'),
|
'max_value': _('Ensure this value is less than or equal to {max_value}.'),
|
||||||
'min_value': _('Ensure this value is greater than or equal to {min_value}.'),
|
'min_value': _('Ensure this value is greater than or equal to {min_value}.'),
|
||||||
'max_string_length': _('String value too large.'),
|
'max_string_length': _('String value too large.'),
|
||||||
'overflow': _('int too large to convert to float')
|
'overflow': _('Integer value too large to convert to float')
|
||||||
}
|
}
|
||||||
MAX_STRING_LENGTH = 1000 # Guard against malicious string inputs.
|
MAX_STRING_LENGTH = 1000 # Guard against malicious string inputs.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user