X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/093cc6f1322e48e79088a864addd7fff4c34c252..0b7fa756174b1d0014b030c0152e0be7f23c4fd4:/sercom/subcontrollers/curso/__init__.py diff --git a/sercom/subcontrollers/curso/__init__.py b/sercom/subcontrollers/curso/__init__.py index 7b5fccd..35e9952 100644 --- a/sercom/subcontrollers/curso/__init__.py +++ b/sercom/subcontrollers/curso/__init__.py @@ -248,8 +248,8 @@ class CursoController(controllers.Controller, identity.SecureResource): params = dict([(k,v) for (k,v) in kw.iteritems() if k in Curso.sqlmeta.columns.keys()]) r = validate_set(id, params) - docentes = kw.get('docentes_to', []) - alumnos = kw.get('alumnos', []) + docentes = [a for a in kw.get('docentes_to', [])] + alumnos = [a for a in kw.get('alumnos', [])] alumnos_inscriptos = AlumnoInscripto.selectBy(curso=id) """ levanto los doncentes del curso para ver cuales tengo que agregar """ docentes_inscriptos = DocenteInscripto.selectBy(curso=id)