Removes unneeded lines, and set default value for coerce_to_string to be False insteed of None

This commit is contained in:
Kevin Georgy 2017-10-04 13:04:25 +02:00
parent 9bd6229451
commit 8890539545

View File

@ -957,9 +957,7 @@ class FloatField(Field):
self.max_value = kwargs.pop('max_value', None)
self.min_value = kwargs.pop('min_value', None)
self.localize = kwargs.pop('localize', False)
self.coerce_to_string = kwargs.pop('coerce_to_string', None)
if self.localize:
self.coerce_to_string = True
self.coerce_to_string = kwargs.pop('coerce_to_string', False)
super(FloatField, self).__init__(**kwargs)
if self.max_value is not None:
message = lazy(