1

I'm trying to track changes in many-to-many relationship using SQLAlchemy-Continuum package.

Unfortunately only changes made to simple fields like db.String are present in the changeset.

How to make changes made to relationship fields present in the changeset?

There are some fragments in the docs concerning many-to-many relationships but the documentation lacks examples. https://sqlalchemy-continuum.readthedocs.io/en/latest/api.html#sqlalchemy_continuum.relationship_builder.RelationshipBuilder.build_association_version_tables

Any help and examples will be appreciated.

Nikolay Shebanov
  • 1,363
  • 19
  • 33
stasiekz
  • 1,775
  • 5
  • 22
  • Have you considered versioning the model on the other side of the relationship? This way the changes will show up under the transaction associated with a changeset. Unfortunately, `build_association_version_tables` won't help. It is used internally in the relation builder, to create an intermediate association table where needed. – Nikolay Shebanov May 06 '20 at 20:49

0 Answers0