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