

def db_value(self, value):
    'Convert the python value for storage in the database.'
    return (value if (value is None) else self.coerce(value))

dataset/ETHPy150Open coleifer/peewee/peewee.py Field.db_value/original