You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it looks like sqlalchemy-continuum fails when I try to add __versioned__ to a model with it.
File "/home/abdealijk/venv/lib/python3.7/site-packages/sqlalchemy_continuum/builder.py", line 22, in check_reentry
handler(*args, **kwargs)
File "/home/abdealijk/venv/lib/python3.7/site-packages/sqlalchemy_continuum/builder.py", line 190, in configure_versioned_classes
self.enable_active_history(pending_classes_copies)
File "/home/abdealijk/venv/lib/python3.7/site-packages/sqlalchemy_continuum/builder.py", line 201, in enable_active_history
getattr(cls, prop.key).impl.active_history = True
AttributeError: type object 'Writer' has no attribute '_sa_polymorphic_on'
The
polymorphic_on
can be a CASE WHEN statement.Ref: https://docs.sqlalchemy.org/en/14/orm/mapping_api.html#sqlalchemy.orm.mapper.params.polymorphic_on
But it looks like sqlalchemy-continuum fails when I try to add
__versioned__
to a model with it.Reproducible example:
The text was updated successfully, but these errors were encountered: