From: Torsten Werner Date: Sun, 16 Jan 2011 17:09:55 +0000 (+0100) Subject: Define sort order for Architecture Suite relationship. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=073da36122b23d7bc96b8d81a8da52d00d034da7;p=dak Define sort order for Architecture Suite relationship. Signed-off-by: Torsten Werner --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index b1db5740..c4d4aff6 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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,