code: def get_categories_tree(context, template='zinnia/tags/categories_tree.html'):
      
      return {'template': template,
              'categories': Category.objects.all().annotate(
                  count_entries=Count('entries')),
              'context_category': context.get('category')}
docs: Return the categories as a tree.