X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/bcb3e4bcc3dfbface661034e16a86c69d4218d74..7b1a546cf211f419053f417a509de6add0cd5875:/sercom/subcontrollers/curso/ejercicio/__init__.py diff --git a/sercom/subcontrollers/curso/ejercicio/__init__.py b/sercom/subcontrollers/curso/ejercicio/__init__.py index cf819d3..c2b2c8c 100644 --- a/sercom/subcontrollers/curso/ejercicio/__init__.py +++ b/sercom/subcontrollers/curso/ejercicio/__init__.py @@ -83,7 +83,7 @@ class EjercicioController(controllers.Controller, identity.SecureResource): def list(self, curso): """List records in model""" r = cls.selectBy(cursoID=curso).orderBy(cls.q.numero) - return dict(records=r, name=name, namepl=namepl, curso=curso) + return dict(records=r, name=name, namepl=namepl, curso=Curso.get(curso)) @expose(template='kid:%s.templates.new' % __name__) @validate(validators=dict(curso=V.Int))