def post_creation(self, instance): tasks_service.clear_department_cache(str(instance.id)) return instance.serialize()
def post_delete(self, instance_dict): tasks_service.clear_department_cache(instance_dict["id"])
def post_update(self, instance_dict): tasks_service.clear_department_cache(instance_dict["id"]) return instance_dict