def do_get_content_positions(parser, token):
    """
    {% get_content_positions object as positions %}
    
    or for the admin..
    
    {% get_content_positions content_type_id object_id as positions %}
    """
    argv = token.contents.split()
    argc = len(argv)
 
    if argc != 4 and argc != 5:
        raise TemplateSyntaxError, ar % "Tag %s takes three or four arguments."
 
    if argv[2] == "as":
        return ContentPositionsNode(obj=argv[1], varname=argv[3])
    elif argv[3] == "as":
        return ContentPositionsNode(content_type_id=argv[1], 
            object_id=argv[2], varname=argv[4])
    else:
        raise TemplateSyntaxError, 'Second or Third argument must be "as"'
dataset/ETHPy150Open callowayproject/django-kamasutra/positions/templatetags/position_tags.py/do_get_content_positions/swapped operands of `%`