#31 API Deductions
* adds intervention check state reset to all deduction-changing API routes
This commit is contained in:
parent
c3a8631f03
commit
9b18b877d5
@ -79,6 +79,7 @@ class DeductionAPISerializerV1(AbstractModelAPISerializerV1,
|
|||||||
account=acc,
|
account=acc,
|
||||||
surface=surface
|
surface=surface
|
||||||
)
|
)
|
||||||
|
deduction.intervention.mark_as_edited(user)
|
||||||
return str(deduction.id)
|
return str(deduction.id)
|
||||||
|
|
||||||
def _get_obj_from_db(self, id, user):
|
def _get_obj_from_db(self, id, user):
|
||||||
@ -140,6 +141,8 @@ class DeductionAPISerializerV1(AbstractModelAPISerializerV1,
|
|||||||
deduction.surface = surface
|
deduction.surface = surface
|
||||||
deduction.save()
|
deduction.save()
|
||||||
|
|
||||||
|
deduction.intervention.mark_as_edited(user)
|
||||||
|
|
||||||
return str(deduction.id)
|
return str(deduction.id)
|
||||||
|
|
||||||
def delete_entry(self, id, user):
|
def delete_entry(self, id, user):
|
||||||
|
Loading…
Reference in New Issue
Block a user