fix: cascade deletes for User -> UserRole
This commit is contained in:
parent
304b4b0a19
commit
3e3f7ac958
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue