From 3aa655a3111581af526137f5154a9c5b4c7d0dcf Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 10 Sep 2013 13:29:20 +0200 Subject: [PATCH] daklib/dbconn.py: Add relation from a component to the suites that include it Signed-off-by: Tollef Fog Heen --- daklib/dbconn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5