From 1971cf594241ef04833568356b58f2f9a6bbe6bf Mon Sep 17 00:00:00 2001 From: mipel Date: Wed, 6 Oct 2021 13:40:38 +0200 Subject: [PATCH] #7 New Form * fixes bug where modified was not changed on an edit of compensation and ecoaccount --- compensation/forms/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compensation/forms/forms.py b/compensation/forms/forms.py index 5959f53..7c922f1 100644 --- a/compensation/forms/forms.py +++ b/compensation/forms/forms.py @@ -216,6 +216,7 @@ class EditCompensationForm(NewCompensationForm): self.instance.intervention = intervention self.instance.geometry = geometry self.instance.comment = comment + self.instance.modified = action self.instance.fundings.set(fundings) self.instance.save() @@ -413,6 +414,7 @@ class EditEcoAccountForm(NewEcoAccountForm): self.instance.deductable_surface = surface self.instance.geometry = geometry self.instance.comment = comment + self.instance.modified = action self.instance.save() self.instance.fundings.set(fundings)