From 84a18dba74a0fcaa92a007a897f8b0e3de242df6 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 10 Sep 2013 23:39:39 +0200 Subject: [PATCH] daklib/dbconn.py: one relation from components to suites is enough. Signed-off-by: Ansgar Burchardt --- daklib/dbconn.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 22d20a57..a900a0e6 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2667,8 +2667,7 @@ class DBConn(object): mapper(Component, self.tbl_component, properties = dict(component_id = self.tbl_component.c.id, - component_name = self.tbl_component.c.name, - suites = relation(Suite, secondary=self.tbl_component_suite)), + component_name = self.tbl_component.c.name), extension = validator) mapper(DBConfig, self.tbl_config, @@ -2817,7 +2816,7 @@ class DBConn(object): acls = relation(ACL, secondary=self.tbl_suite_acl_map, collection_class=set), components = relation(Component, secondary=self.tbl_component_suite, order_by=self.tbl_component.c.ordering, - backref=backref('suite'))), + backref=backref('suites'))), extension = validator) mapper(Uid, self.tbl_uid, -- 2.39.5