]> 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:43:44 +0000 (19:43 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 24f8fb17d9620f99570db40e203ac21381ec142c..0f3a690cc785d91ed64169d8a0ed088264eb8ff3 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