def get_form():
 if ((get_comment_app_name() != DEFAULT_COMMENTS_APP) and hasattr(get_comment_app(), 'get_form')):
  return get_comment_app().get_form()
 else:
  return CommentForm

def get_form ( ) : if ( ( get_comment_app_name ( ) != DEFAULT_COMMENTS_APP ) and hasattr ( get_comment_app ( ) , 'get_form' ) ) : return get_comment_app ( ) . get_form ( ) else : return CommentForm
create form from peewee model and contribute extra fields .