]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/dbconn.py: one relation from components to suites is enough.
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 10 Sep 2013 21:39:39 +0000 (23:39 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 10 Sep 2013 21:41:12 +0000 (23:41 +0200)
Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
daklib/dbconn.py

index 22d20a577707e5efed603727ef4356313a24aeb4..a900a0e6a41564b6d7d402bada53a17c9662a628 100644 (file)
@@ -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,