Fix minor typo w/ FloatField
This commit is contained in:
parent
1fdc7ce6bb
commit
5bb63f645b
@ -182,7 +182,7 @@ class FloatField(BaseField):
|
|||||||
if isinstance(value, int):
|
if isinstance(value, int):
|
||||||
value = float(value)
|
value = float(value)
|
||||||
if not isinstance(value, float):
|
if not isinstance(value, float):
|
||||||
self.error('FoatField only accepts float values')
|
self.error('FloatField only accepts float values')
|
||||||
|
|
||||||
if self.min_value is not None and value < self.min_value:
|
if self.min_value is not None and value < self.min_value:
|
||||||
self.error('Float value is too small')
|
self.error('Float value is too small')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user