From 1fb23d6943d1d981270e0024b49c980781ece685 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 12 Feb 2015 18:10:46 -0200 Subject: [PATCH] Register last update time for Funcionario (bugfix) --- sigi/apps/casas/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index 307245d..8d2ab33 100644 --- a/sigi/apps/casas/models.py +++ b/sigi/apps/casas/models.py @@ -285,7 +285,7 @@ class Funcionario(models.Model): funcao = models.CharField(u'função', max_length=100, null=True, blank=True) setor = models.CharField(max_length=100, choices=SETOR_CHOICES, default="outros") tempo_de_servico = models.CharField(u'tempo de serviço', max_length=50, null=True, blank=True) - ult_alteracao = models.DateTimeField(u'Última alteração', null=True, blank=True, editable=True, auto_now=False) + ult_alteracao = models.DateTimeField(u'Última alteração', null=True, blank=True, editable=True, auto_now=True) class Meta: ordering = ('nome',)