@register.assignment_tag
def get_tags():
    return Tag.objects.usage_for_queryset(
        Entry.published.all())
Return the published tags.
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/templatetags/zinnia.py/get_tags