From aa367a46ffcf3b654d38ff9719f74d27ec28e2fd Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 16 Mar 2007 13:54:26 +0000 Subject: [PATCH] =?utf8?q?Listar=20curso=20en=20un=20orden=20m=C3=A1s=20?= =?utf8?q?=C3=BAtil.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/subcontrollers/curso/__init__.py | 2 +- sercom/subcontrollers/curso/templates/list.kid | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/sercom/subcontrollers/curso/__init__.py b/sercom/subcontrollers/curso/__init__.py index 3610103..699bc79 100644 --- a/sercom/subcontrollers/curso/__init__.py +++ b/sercom/subcontrollers/curso/__init__.py @@ -179,7 +179,7 @@ class CursoController(controllers.Controller, identity.SecureResource): @paginate('records') def list(self): """List records in model""" - r = cls.select() + r = cls.select().orderBy((-cls.q.anio, -cls.q.cuatrimestre, cls.q.numero)) return dict(records=r, name=name, namepl=namepl) @expose() diff --git a/sercom/subcontrollers/curso/templates/list.kid b/sercom/subcontrollers/curso/templates/list.kid index 72f2bf9..faa27c0 100644 --- a/sercom/subcontrollers/curso/templates/list.kid +++ b/sercom/subcontrollers/curso/templates/list.kid @@ -11,6 +11,7 @@ + @@ -22,12 +23,8 @@ - - + + -- 2.43.0
# Numero Cuatrimestre AnioOperaciones
numeroidnumero cuatrimestre anio descripcion