kvesteri / sqlalchemy-continuum

Versioning extension for SQLAlchemy.
BSD 3-Clause "New" or "Revised" License
580 stars 126 forks source link

Activity plugin doesn't support composite primary keys #270

Open marksteward opened 2 years ago

marksteward commented 2 years ago

210 was strictly fixed by #211, but we now pull out only the first column from the primary key:

                    primary_key = inspect(model).primary_key[0].name

This is arguably more surprising than not supporting custom primary keys, so we should fix this.