]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/dbconn.py: Add relation from a component to the suites that include it
authorTollef Fog Heen <tfheen@varnish-software.com>
Tue, 10 Sep 2013 11:29:20 +0000 (13:29 +0200)
committerTollef Fog Heen <tfheen@err.no>
Tue, 10 Sep 2013 11:33:43 +0000 (13:33 +0200)
Signed-off-by: Tollef Fog Heen <tfheen@varnish-software.com>
daklib/dbconn.py

index 51a76c5a69f84f0bd4df54e00627c91ace223b41..e5d4049c3f833951519d72deee4131aee3144bfb 100644 (file)
@@ -2669,7 +2669,8 @@ class DBConn(object):
 
         mapper(Component, self.tbl_component,
                properties = dict(component_id = self.tbl_component.c.id,
-                                 component_name = self.tbl_component.c.name),
+                                 component_name = self.tbl_component.c.name,
+                                 suites = relation(Suite, secondary=self.tbl_component_suite)),
                extension = validator)
 
         mapper(DBConfig, self.tbl_config,