Skip to content

Commit

Permalink
Fixed removing viur-relations objects in relationalBole:postDeletedHa…
Browse files Browse the repository at this point in the history
…ndler
  • Loading branch information
tsteinruecken committed May 12, 2021
1 parent 2896de6 commit 9174850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bones/relationalBone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9174850

Please sign in to comment.