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):