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=8cc76224a38ffd1edca7cec7c83e58b1362edcb7;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 24f8fb17..0f3a690c 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