X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/52359436d60992517ff1b7a7f1a89652e28c0c62..013d8040affbcef2b17a1d823048354d8a4ed683:/sercom/subcontrollers/curso/grupo/__init__.py diff --git a/sercom/subcontrollers/curso/grupo/__init__.py b/sercom/subcontrollers/curso/grupo/__init__.py index f658809..a382340 100644 --- a/sercom/subcontrollers/curso/grupo/__init__.py +++ b/sercom/subcontrollers/curso/grupo/__init__.py @@ -307,7 +307,7 @@ class GrupoController(controllers.Controller, identity.SecureResource): def list(self, curso): """List records in model""" r = cls.selectBy(cursoID=curso) - return dict(records=r, name=name, namepl=namepl, cursoID=curso) + return dict(records=r, name=name, namepl=namepl.capitalize(), curso=Curso.get(curso)) @expose(template='kid:%s.templates.new' % __name__) @validate(validators=dict(curso=V.Int))