def reject_suggestion(editor_id, thread_id, exploration_id):
 if _is_suggestion_handled(thread_id, exploration_id):
  raise Exception('Suggestion has already been accepted/rejected.')
 else:
  thread = feedback_models.FeedbackThreadModel.get_by_exp_and_thread_id(exploration_id, thread_id)
  feedback_services.create_message(exploration_id, thread_id, editor_id, feedback_models.STATUS_CHOICES_IGNORED, None, 'Suggestion rejected.')
  thread.put()

def reject_suggestion ( editor_id , thread_id , exploration_id ) : if _is_suggestion_handled ( thread_id , exploration_id ) : raise Exception ( 'Suggestion has already been accepted/rejected.' ) else : thread = feedback_models . FeedbackThreadModel . get_by_exp_and_thread_id ( exploration_id , thread_id ) feedback_services . create_message ( exploration_id , thread_id , editor_id , feedback_models . STATUS_CHOICES_IGNORED , None , 'Suggestion rejected.' ) thread . put ( )
set the state of a suggetion to rejected .