mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(PackageNotification): add missing backref cascade
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
27f8603dc5
commit
0447afa2e5
1 changed files with 4 additions and 2 deletions
|
@ -15,12 +15,14 @@ class PackageNotification(Base):
|
||||||
}
|
}
|
||||||
|
|
||||||
User = relationship(
|
User = relationship(
|
||||||
_User, backref=backref("notifications", lazy="dynamic"),
|
_User, backref=backref("notifications", lazy="dynamic",
|
||||||
|
cascade="all, delete"),
|
||||||
foreign_keys=[__table__.c.UserID])
|
foreign_keys=[__table__.c.UserID])
|
||||||
|
|
||||||
PackageBase = relationship(
|
PackageBase = relationship(
|
||||||
_PackageBase,
|
_PackageBase,
|
||||||
backref=backref("notifications", lazy="dynamic"),
|
backref=backref("notifications", lazy="dynamic",
|
||||||
|
cascade="all, delete"),
|
||||||
foreign_keys=[__table__.c.PackageBaseID])
|
foreign_keys=[__table__.c.PackageBaseID])
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
|
Loading…
Add table
Reference in a new issue