def get_flag_url(comment):
 if ((get_comment_app_name() != DEFAULT_COMMENTS_APP) and hasattr(get_comment_app(), 'get_flag_url')):
  return get_comment_app().get_flag_url(comment)
 else:
  return urlresolvers.reverse('django.contrib.comments.views.moderation.flag', args=(comment.id,))

def get_flag_url ( comment ) : if ( ( get_comment_app_name ( ) != DEFAULT_COMMENTS_APP ) and hasattr ( get_comment_app ( ) , 'get_flag_url' ) ) : return get_comment_app ( ) . get_flag_url ( comment ) else : return urlresolvers . reverse ( 'django.contrib.comments.views.moderation.flag' , args = ( comment . id , ) )
get the url for the "flag this comment" view .