@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.
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/templatetags/zinnia.py/comment_admin_urlname