def METHOD_NAME(self, serializer):
    prev_state = serializer.instance.insight_logs_serialized
    serializer.save()
    new_state = serializer.instance.insight_logs_serialized
    write_resource_insight_log(
        instance=serializer.instance,
        author=self.request.user,
        event=EntityEvent.UPDATED,
        prev_state=prev_state,
        new_state=new_state,
    )