Exemplo n.º 1
0
 def post_creation(self, instance):
     tasks_service.clear_department_cache(str(instance.id))
     return instance.serialize()
Exemplo n.º 2
0
 def post_delete(self, instance_dict):
     tasks_service.clear_department_cache(instance_dict["id"])
Exemplo n.º 3
0
 def post_update(self, instance_dict):
     tasks_service.clear_department_cache(instance_dict["id"])
     return instance_dict