def python_value(self, value):
        if value is not None:
            if isinstance(value, decimal.Decimal):
                return value
            return decimal.Decimal(str(value))
dataset/ETHPy150Open coleifer/peewee/peewee.py/DecimalField.python_value/original