@register.filter
def comment_admin_urlname(action):
 comment = get_comment_model()
 return ('admin:%s_%s_%s' % (comment._meta.app_label, comment._meta.model_name, action))

@ register . filter def comment_admin_urlname ( action ) : comment = get_comment_model ( ) return ( 'admin:%s_%s_%s' % ( comment . _meta . app_label , comment . _meta . model_name , action ) )
return the admin urls for the comment app used .