]> git.decadent.org.uk Git - dak.git/commitdiff
Define sort order for Architecture Suite relationship.
authorTorsten Werner <twerner@debian.org>
Sun, 16 Jan 2011 17:09:55 +0000 (18:09 +0100)
committerTorsten Werner <twerner@debian.org>
Sun, 16 Jan 2011 17:09:55 +0000 (18:09 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index b1db5740fa3759ff9e1519508a761c4712ef79cc..c4d4aff672dd3a07030fbef9de90b3fdbe10cee7 100755 (executable)
@@ -2889,7 +2889,7 @@ class DBConn(object):
     def __setupmappers(self):
         mapper(Architecture, self.tbl_architecture,
                properties = dict(arch_id = self.tbl_architecture.c.id,
-                                 suites = relation(Suite, secondary=self.tbl_suite_architectures, backref='architectures')))
+                                 suites = relation(Suite, secondary=self.tbl_suite_architectures, backref='architectures', order_by='suite_name')))
 
         mapper(Archive, self.tbl_archive,
                properties = dict(archive_id = self.tbl_archive.c.id,