From: Tollef Fog Heen Date: Tue, 10 Sep 2013 11:29:20 +0000 (+0200) Subject: daklib/dbconn.py: Add relation from a component to the suites that include it X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3aa655a3111581af526137f5154a9c5b4c7d0dcf;p=dak.git daklib/dbconn.py: Add relation from a component to the suites that include it Signed-off-by: Tollef Fog Heen --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 51a76c5a..e5d4049c 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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,