X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/aefcdf003c62e1f20f66db160fb69a70b7fda7eb..c319838b39466b11a0cf2e7f2e31d8fe23bb6352:/sercom/subcontrollers/docente/__init__.py diff --git a/sercom/subcontrollers/docente/__init__.py b/sercom/subcontrollers/docente/__init__.py index df41ae9..721ec34 100644 --- a/sercom/subcontrollers/docente/__init__.py +++ b/sercom/subcontrollers/docente/__init__.py @@ -91,7 +91,7 @@ class DocenteController(controllers.Controller, identity.SecureResource): def create(self, **kw): """Save or create record to model""" try: - Docente(**kw) + cls(**kw) except Exception, e: raise redirect('new', tg_flash=_(u'No se pudo crear el nuevo %s, ' \ 'probablemente ya existe uno con el mismo usuario (error: %s).'