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
{{ message }}
Repository navigation
Error when using polymorphic_on with CASE statement #297
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'
Activity
AbdealiLoKo commentedon Aug 31, 2022
A alternate syntax here is:
But this seems to be failing with the error that the column property is not found in the version table