From a93b9774a23c42560c713d0cfe7d5c37548f1b6a Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 2 Mar 2011 19:40:52 +0100 Subject: [PATCH] Add an explicit cascade rule for BinContents. Signed-off-by: Torsten Werner --- daklib/dbconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 1bf44c85..3806e31e 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -3288,7 +3288,7 @@ class DBConn(object): mapper(BinContents, self.tbl_bin_contents, properties = dict( binary = relation(DBBinary, - backref=backref('contents', lazy='dynamic')), + backref=backref('contents', lazy='dynamic', cascade='all')), file = self.tbl_bin_contents.c.file)) ## Connection functions -- 2.39.5