

def python_value(self, value):
    if (value and isinstance(self, basestring)):
        return format_date_time(value, self.formats)
    return value

dataset/ETHPy150Open coleifer/peewee/peewee.py DateTimeField.python_value/VarMisuse@18/20 `value`->`self`