X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/093cc6f1322e48e79088a864addd7fff4c34c252..40a56893faa8289299260432e65d1b54e9ae53ed:/sercom/subcontrollers/curso/__init__.py?ds=inline 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)