

def _get_pk_sequence(self, model):
    meta = model._meta
    if ((meta.primary_key is not False) and meta.primary_key.sequence):
        return model.primary_key.sequence
    elif meta.auto_increment:
        return ('%s_%s_seq' % (meta.db_table, meta.primary_key.db_column))

dataset/ETHPy150Open coleifer/peewee/peewee.py PostgresqlDatabase._get_pk_sequence/VarMisuse@39/47 `meta`->`model`