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
AssociationProxy now support 'like', also contains function have updated, also Implemented bulk replace for sets, dicts with AssociationProxy.
With testing we hit on a bug with:
File "/home/wayne/.local/share/virtualenvs/metadash-M-x0RP1C/lib/python3.6/site-packages/sqlalchemy/ext/associationp
roxy.py", line 960, in __setstate__
self.parent._inflate(self)
AttributeError: 'AssociationProxy' object has no attribute '_inflate'
The text was updated successfully, but these errors were encountered:
I've done some research and believe that it is a bug in sqlachemy. What _inflate() does is to set the proper creator, setter and getter for a association_proxy from its parent. But since association_proxy no longer stores its parent[1], this would be definitely a runtime error.
[1]:New in version 1.3: - AssociationProxy no longer stores any state specific to a particular parent class; the state is now stored in per-class AssociationProxyInstance objects.
SQLAlchemy have new 1.3 release:
https://docs.sqlalchemy.org/en/latest/changelog/migration_13.html#change-2642
AssociationProxy now support 'like', also contains function have updated, also Implemented bulk replace for sets, dicts with AssociationProxy.
With testing we hit on a bug with:
The text was updated successfully, but these errors were encountered: