]> git.decadent.org.uk Git - dak.git/commitdiff
Add an explicit cascade rule for BinContents.
authorTorsten Werner <twerner@debian.org>
Wed, 2 Mar 2011 18:40:52 +0000 (19:40 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 2 Mar 2011 18:40:52 +0000 (19:40 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 1bf44c858650951be219bfdeb1a5b8c360709dec..3806e31e2d09c9922c58014e9c0462d13e0a368b 100755 (executable)
@@ -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