

def create_foreign_key(self, model_class, field, constraint=None):
    qc = self.compiler()
    return self.execute_sql(*qc.create_foreign_key(model_class, self, constraint))

dataset/ETHPy150Open coleifer/peewee/peewee.py Database.create_foreign_key/VarMisuse@38/48 `field`->`self`