X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/5c4e1768542d87e9bf39da8bc8aa0eef800b1b47..0719c2383ee875ff75e499644f3a58a7c4f6ce48:/sercom/subcontrollers/curso/__init__.py diff --git a/sercom/subcontrollers/curso/__init__.py b/sercom/subcontrollers/curso/__init__.py index 20c2310..b9ce585 100644 --- a/sercom/subcontrollers/curso/__init__.py +++ b/sercom/subcontrollers/curso/__init__.py @@ -225,8 +225,8 @@ class CursoController(controllers.Controller, identity.SecureResource): """Edit record in model""" r = validate_get(id) # cargo la lista con los docentes asignados al curso - r.docentes_to = [{"id":d.docente.id, "label":d.docente.shortrepr()} for d in r.docentes] - r.alumnos_inscriptos = [{"id":a.alumno.id, "label":a.alumno.shortrepr()} for a in r.alumnos] + r.docentes_to = [{"id":d.docente.id, "label":d.docente.shortrepr().replace("'", "\\'")} for d in r.docentes] + r.alumnos_inscriptos = [{"id":a.alumno.id, "label":a.alumno.shortrepr().replace("'", "\\'")} for a in r.alumnos] return dict(name=name, namepl=namepl, record=r, form=form) @validate(form=form)