mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: delete associated ssh public keys with account deletion
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
parent
bce5b81acd
commit
ff92e95f7a
2 changed files with 32 additions and 1 deletions
|
@ -13,7 +13,7 @@ class SSHPubKey(Base):
|
|||
|
||||
User = relationship(
|
||||
"User",
|
||||
backref=backref("ssh_pub_keys", lazy="dynamic"),
|
||||
backref=backref("ssh_pub_keys", lazy="dynamic", cascade="all, delete"),
|
||||
foreign_keys=[__table__.c.UserID],
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue