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, backref=backref("notifications", lazy="dynamic"),
|
||||
_User, backref=backref("notifications", lazy="dynamic",
|
||||
cascade="all, delete"),
|
||||
foreign_keys=[__table__.c.UserID])
|
||||
|
||||
PackageBase = relationship(
|
||||
_PackageBase,
|
||||
backref=backref("notifications", lazy="dynamic"),
|
||||
backref=backref("notifications", lazy="dynamic",
|
||||
cascade="all, delete"),
|
||||
foreign_keys=[__table__.c.PackageBaseID])
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue