From 917485036ecee105721eb4b57f40cf259b40c620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Steinr=C3=BCcken?= Date: Wed, 12 May 2021 10:52:41 +0200 Subject: [PATCH] Fixed removing viur-relations objects in relationalBole:postDeletedHandler --- core/bones/relationalBone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bones/relationalBone.py b/core/bones/relationalBone.py index f5a54f8ff..36a049613 100644 --- a/core/bones/relationalBone.py +++ b/core/bones/relationalBone.py @@ -389,7 +389,7 @@ def postDeletedHandler(self, skel, boneName, key): dbVals.filter("viur_src_kind =", skel.kindName) dbVals.filter("viur_dest_kind =", self.kind) dbVals.filter("viur_src_property =", boneName) - dbVals.filter("src.key =", key) + dbVals.filter("src.__key__ =", key) db.Delete([x for x in dbVals.run(keysOnly=True)]) def isInvalid(self, key):