#31 API Deductions

* adds intervention check state reset to all deduction-changing API routes
This commit is contained in:
mpeltriaux 2022-01-28 15:55:00 +01:00
parent c3a8631f03
commit 9b18b877d5

View File

@ -79,6 +79,7 @@ class DeductionAPISerializerV1(AbstractModelAPISerializerV1,
account=acc,
surface=surface
)
deduction.intervention.mark_as_edited(user)
return str(deduction.id)
def _get_obj_from_db(self, id, user):
@ -140,6 +141,8 @@ class DeductionAPISerializerV1(AbstractModelAPISerializerV1,
deduction.surface = surface
deduction.save()
deduction.intervention.mark_as_edited(user)
return str(deduction.id)
def delete_entry(self, id, user):