

def update_comment_node(root_target_id, source_node, destination_node):
    Comment.update(Q('root_target', 'eq', root_target_id), data={
        'node': destination_node,
    })
    source_node.save()
    destination_node.save()

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/project/views/comment.py update_comment_node/original