Update rest_framework/fields.py

This commit is contained in:
Asif Saif Uddin 2022-11-22 10:26:05 +06:00 committed by GitHub
parent b487f57738
commit 00cf78362d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -920,7 +920,7 @@ class FloatField(Field):
'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}.'),
'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.