def to_python(self, value):
        if value is None:
            return value
        try:
            return float(value)
        except (TypeError, __HOLE__):
            raise exceptions.ValidationError(
                _("This value must be a float."))
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/fields/__init__.py/FloatField.to_python