From: Ansgar Burchardt Date: Tue, 10 Sep 2013 21:39:39 +0000 (+0200) Subject: daklib/dbconn.py: one relation from components to suites is enough. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=84a18dba74a0fcaa92a007a897f8b0e3de242df6;p=dak.git daklib/dbconn.py: one relation from components to suites is enough. Signed-off-by: Ansgar Burchardt --- 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,