From: Ricardo Markiewicz Date: Sat, 10 Mar 2007 18:02:50 +0000 (+0000) Subject: fix que a mi me colgaba el update X-Git-Tag: 0_9~93 X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/commitdiff_plain/46d8c9d3b2ec0b949dd5075a1d7c2b2a6b8f869d?ds=sidebyside fix que a mi me colgaba el update --- 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)