1
0
Fork 0

fix: cascade deletes for User -> UserRole

This commit is contained in:
Lance Edgar 2024-08-14 12:12:12 -05:00
parent 304b4b0a19
commit 3e3f7ac958

View file

@ -188,9 +188,8 @@ class User(Base):
role_refs = orm.relationship(
'UserRole',
back_populates='user',
cascade='all, delete-orphan',
cascade_backrefs=False,
# TODO
# cascade='all, delete-orphan',
doc="""
List of :class:`UserRole` instances belonging to the user.