#NEWLINE# @ classmethod #NEWLINE# def create( cls , exploration_id , thread_id , author_id , exploration_version , state_name , description , state_content ) : #NEWLINE# #INDENT# 'Creates a new SuggestionModel entry.\n\n        Throws an exception if a suggestion with the given thread id already\n        exists.\n        ' #NEWLINE# instance_id = cls . _get_instance_id ( exploration_id , thread_id ) #NEWLINE# if cls . get_by_id ( instance_id ) : #NEWLINE# #INDENT# raise Exception ( ( 'There is already a feedback thread with the given thread id: %s' % instance_id ) ) #NEWLINE# #UNINDENT# cls ( id = instance_id , author_id = author_id , exploration_id = exploration_id , exploration_version = exploration_version , state_name = state_name , description = description , state_content = state_content ) . put ( )