Debug date_maj

This commit is contained in:
Evarin 2017-04-27 22:19:09 +02:00
parent 570cd1bbe5
commit 7016e2df58

View file

@ -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