

def set_model(self, rel_model):
    self.field.rel_model = rel_model
    self.field.add_to_class(self.model_class, self.name)

dataset/ETHPy150Open coleifer/peewee/peewee.py DeferredRelation.set_model/original