@register.inclusion_tag('zinnia/tags/dummy.html', takes_context=True)
def get_categories_tree(context, template='zinnia/tags/categories_tree.html'):
    return {'template': template,
            'categories': Category.objects.all(),
            'context_category': context.get('category')}
Return the categories as a tree.
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/templatetags/zinnia.py/get_categories_tree