From: Ricardo Markiewicz Date: Thu, 1 Mar 2007 20:48:03 +0000 (+0000) Subject: Seteo la hora de correccion X-Git-Tag: pre-merge~21 X-Git-Url: https://git.llucax.com/software/sercom.git/commitdiff_plain/57da76833fa5e128c7039d057022d7c2b648626e?ds=inline Seteo la hora de correccion --- diff --git a/sercom/subcontrollers/correccion/__init__.py b/sercom/subcontrollers/correccion/__init__.py index 0461f9a..162a56f 100644 --- a/sercom/subcontrollers/correccion/__init__.py +++ b/sercom/subcontrollers/correccion/__init__.py @@ -81,9 +81,11 @@ class CorreccionController(controllers.Controller, identity.SecureResource): @expose() def update(self, id, **kw): """Save or create record to model""" + from sqlobject import DateTimeCol r = Correccion.get(id) r.nota = kw['nota'] r.observaciones = kw['observaciones'] + r.corregido = DateTimeCol.now() flash(_(u'El %s fue actualizado.') % name) raise redirect('../list') diff --git a/sercom/subcontrollers/correccion/templates/list.kid b/sercom/subcontrollers/correccion/templates/list.kid index 0157f61..aefbe0b 100644 --- a/sercom/subcontrollers/correccion/templates/list.kid +++ b/sercom/subcontrollers/correccion/templates/list.kid @@ -31,7 +31,7 @@ Ver Corregir - Editar + Editar