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
auto_delete_orphans seems only support backref, not support back_populates
auto_delete_orphans(Magnet.tags)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy_utils/listeners.py", line 246, in auto_delete_orphans
raise ImproperlyConfigured(
sqlalchemy_utils.exceptions.ImproperlyConfigured: The relationship argument given for auto_delete_orphans needs to have a backref relationship set.
auto_delete_orphans
seems only supportbackref
, not supportback_populates
however in 2.0 doc https://docs.sqlalchemy.org/en/20/orm/backref.html says
The text was updated successfully, but these errors were encountered: