

def last_insert_id(self, cursor, model):
    if model._meta.auto_increment:
        return model.lastrowid

dataset/ETHPy150Open coleifer/peewee/peewee.py Database.last_insert_id/VarMisuse@24/30 `cursor`->`model`