From: Torsten Werner Date: Wed, 2 Mar 2011 18:40:52 +0000 (+0100) Subject: Add an explicit cascade rule for BinContents. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=a93b9774a23c42560c713d0cfe7d5c37548f1b6a;p=dak.git Add an explicit cascade rule for BinContents. Signed-off-by: Torsten Werner --- 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