#7 New Form
* fixes bug where modified was not changed on an edit of compensation and ecoaccount
This commit is contained in:
parent
60f03591ef
commit
1971cf5942
@ -216,6 +216,7 @@ class EditCompensationForm(NewCompensationForm):
|
|||||||
self.instance.intervention = intervention
|
self.instance.intervention = intervention
|
||||||
self.instance.geometry = geometry
|
self.instance.geometry = geometry
|
||||||
self.instance.comment = comment
|
self.instance.comment = comment
|
||||||
|
self.instance.modified = action
|
||||||
self.instance.fundings.set(fundings)
|
self.instance.fundings.set(fundings)
|
||||||
self.instance.save()
|
self.instance.save()
|
||||||
|
|
||||||
@ -413,6 +414,7 @@ class EditEcoAccountForm(NewEcoAccountForm):
|
|||||||
self.instance.deductable_surface = surface
|
self.instance.deductable_surface = surface
|
||||||
self.instance.geometry = geometry
|
self.instance.geometry = geometry
|
||||||
self.instance.comment = comment
|
self.instance.comment = comment
|
||||||
|
self.instance.modified = action
|
||||||
self.instance.save()
|
self.instance.save()
|
||||||
self.instance.fundings.set(fundings)
|
self.instance.fundings.set(fundings)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user