From 7016e2df58edacd968c814ab3493abe4a4399706 Mon Sep 17 00:00:00 2001 From: Evarin Date: Thu, 27 Apr 2017 22:19:09 +0200 Subject: [PATCH] Debug date_maj --- avisstage/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avisstage/forms.py b/avisstage/forms.py index 0fa83b8..79b926d 100644 --- a/avisstage/forms.py +++ b/avisstage/forms.py @@ -71,7 +71,7 @@ class StageForm(forms.ModelForm): def save(self, commit=True): if self.instance.id is None and hasattr(self, 'request'): self.instance.auteur = self.request.user.profil - self.date_maj = timezone.now() + self.instance.date_maj = timezone.now() stage = super(StageForm, self).save(commit=commit) return stage