@register.tag(name="category_ancestors")
def category_ancestors(parser, token):
    bits = token.split_contents()
    if 4 != len(bits):
        raise TemplateSyntaxError('%r expects 4 arguments' % bits[0])
    if bits[-2] != 'as':
        raise TemplateSyntaxError(
            bits[0] % '%r expects "as" as the second argument')
    category = bits[1]
    varname = bits[-1]
    return category_ancestors_node(category, varname)
dataset/ETHPy150Open zorna/zorna/zorna/articles/templatetags/articles_tags.py/category_ancestors/swapped operands of `%`