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(
|
role_refs = orm.relationship(
|
||||||
'UserRole',
|
'UserRole',
|
||||||
back_populates='user',
|
back_populates='user',
|
||||||
|
cascade='all, delete-orphan',
|
||||||
cascade_backrefs=False,
|
cascade_backrefs=False,
|
||||||
# TODO
|
|
||||||
# cascade='all, delete-orphan',
|
|
||||||
doc="""
|
doc="""
|
||||||
List of :class:`UserRole` instances belonging to the user.
|
List of :class:`UserRole` instances belonging to the user.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue