#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,
 | 
			
		||||
            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):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user