Debug date_maj
This commit is contained in:
parent
570cd1bbe5
commit
7016e2df58
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue