X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/52359436d60992517ff1b7a7f1a89652e28c0c62..547d05bc0d164faa1e0f6d4b3e8c744ba47a534b:/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))