X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/206d6cd5f26a563166199329735818db9345828b..d20df6d112f64611501e68876c4f2f872a27bc3e:/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()