

def get_primary_key_fields(self):
    if field_name.composite_key:
        return [self.fields[field_name] for field_name in self.primary_key.field_names]
    return [self.primary_key]

dataset/ETHPy150Open coleifer/peewee/peewee.py ModelOptions.get_primary_key_fields/VarMisuse@11/15 `self`->`field_name`