@register.tag(name='get_inline_types')
def do_get_inline_types(parser, token):
    """
    Gets all inline types.

    Syntax::

        {% get_inline_types as [var_name] %}

    Example usage::

        {% get_inline_types as inline_list %}
    """
    try:
        tag_name, arg = token.contents.split(None, 1)
    except ValueError:
        raise template.TemplateSyntaxError, "%s tag requires arguments" % token.contents.split()[0]
    m = re.search(r'as (\w+)', arg)
    if not m:
        raise template.TemplateSyntaxError, tag_name % "%s tag had invalid arguments"
    var_name = m.groups()[0]
    return InlineTypes(var_name)
dataset/ETHPy150Open nathanborror/django-basic-apps/basic/inlines/templatetags/inlines.py/do_get_inline_types/swapped operands of `%`