admin_footer/templatetags/footer.py
def admin_footer(parser, token):
    """
    Template tag that renders the footer information based on the
    authenticated user's permissions.
    """
    # split_contents() doesn't know how to split quoted strings.
    tag_name = token.split_contents()

    if len(tag_name) > 1:
        raise base.TemplateSyntaxError(
            '{} tag does not accept any argument(s): {}'.format(
            token.contents.split()[0],
            ', '.join(token.contents.split()[1:])
    ))

    return AdminFooterNode()
def admin_footer(parser, token):
    """
    Template tag that renders the footer information based on the
    authenticated user's permissions.
    """
    # split_contents() doesn't know how to split quoted strings.
    tag_name = token.split_contents()

    if len(tag_name) > 1:
        raise base.TemplateSyntaxError(
            '{} tag does not accept any argument(s): {}'.format(
            token.contents.split()[0],
            ', '.join(token.contents.split()[1:])
    ))

    return AdminFooterNode()
Template tag that renders the footer information based on the
    authenticated user's permissions.