

def add_to_class(self, model_class, name):
    self.name = name
    self.model_class = self
    setattr(model_class, name, self)

dataset/ETHPy150Open coleifer/peewee/peewee.py CompositeKey.add_to_class/VarMisuse@24/31 `model_class`->`self`