@require_POST
@login_required
@permitted
def undo_vote_for_thread(request, course_id, thread_id):
 return _vote_or_unvote(request, course_id, cc.Thread.find(thread_id), undo_vote=True)

@ require_POST @ login_required @ permitted def undo_vote_for_thread ( request , course_id , thread_id ) : return _vote_or_unvote ( request , course_id , cc . Thread . find ( thread_id ) , undo_vote = True )
given a course id and thread id .