X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/5c4e1768542d87e9bf39da8bc8aa0eef800b1b47..899cd679d658580998a8daa9689096b00661ba47:/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)