X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/28fe1b8fba3e8389219c15c399437d42669bf453..c3014f5f1bb51734bf6095409c085ea011ad95b8:/sercom/subcontrollers/enunciado/__init__.py diff --git a/sercom/subcontrollers/enunciado/__init__.py b/sercom/subcontrollers/enunciado/__init__.py index 9ef523f..1b5ab61 100644 --- a/sercom/subcontrollers/enunciado/__init__.py +++ b/sercom/subcontrollers/enunciado/__init__.py @@ -179,7 +179,7 @@ class EnunciadoController(controllers.Controller, identity.SecureResource): """Edit record in model""" r = validate_get(id) r.tareas_fuente = [{"id":t.id, "label":t.shortrepr()} for t in r.tareas if isinstance(t, TareaFuente)] - r.tareas_prueba = [{"id":t.id, "label":t.shortrepr()} for t in r.tareas if isinstance(x, TareaPrueba)] + r.tareas_prueba = [{"id":t.id, "label":t.shortrepr()} for t in r.tareas if isinstance(t, TareaPrueba)] return dict(name=name, namepl=namepl, record=r, form=form) @validate(form=form)