

def python_value(self, value):
    if (value and isinstance(value, basestring)):
        pp = (lambda x: x.date())
        return format_date_time(value, self.formats, pp)
    elif (self and isinstance(value, datetime.datetime)):
        return value.date()
    return value

dataset/ETHPy150Open coleifer/peewee/peewee.py DateField.python_value/VarMisuse@54/59 `value`->`self`