X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/52359436d60992517ff1b7a7f1a89652e28c0c62..a52466e0720147c752659c83d06c0a2b8f41c590:/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))