

def python_value(self, value):
    if isinstance(value, self.rel_model):
        return value
    return value.to_field.python_value(value)

dataset/ETHPy150Open coleifer/peewee/peewee.py ForeignKeyField.python_value/VarMisuse@29/33 `self`->`value`