X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/206d6cd5f26a563166199329735818db9345828b..7ca12e30972ce06c083afba89f678555b784b2e3:/sercom/subcontrollers/curso/__init__.py diff --git a/sercom/subcontrollers/curso/__init__.py b/sercom/subcontrollers/curso/__init__.py index 8873458..ca216fe 100644 --- a/sercom/subcontrollers/curso/__init__.py +++ b/sercom/subcontrollers/curso/__init__.py @@ -212,9 +212,13 @@ class CursoController(controllers.Controller, identity.SecureResource): @expose() def create(self, **kw): """Save or create record to model""" - r = validate_new(kw) docentes = kw.get('docentes_curso', []) alumnos = kw.get('alumnos', []) + del(kw['remDocente']) + del(kw['addDocente']) + del(kw['docentes_curso']) + del(kw['alumnos']) + r = validate_new(kw) """ Elimino todos los docentes asignados al curso y los agrego nuevamente""" for d in DocenteInscripto.selectBy(curso=r): d.destroySelf()