(self, value)
| 701 | |
| 702 | class BaseFloat(Column): |
| 703 | def validate(self, value): |
| 704 | value = super(BaseFloat, self).validate(value) |
| 705 | if value is None: |
| 706 | return |
| 707 | try: |
| 708 | return float(value) |
| 709 | except (TypeError, ValueError): |
| 710 | raise ValidationError("{0} {1} is not a valid float".format(self.column_name, value)) |
| 711 | |
| 712 | def to_python(self, value): |
| 713 | return self.validate(value) |
no test coverage detected