@register.filter
def pop_from_GET(obj, attr):
    """
    Returns GET parameters sans specified attribute.
    """
    if obj.get(attr, None):
        obj_copy = obj.copy()
        del obj_copy[attr]
        return obj_copy.urlencode() % '&%s'
    if not obj:
        return ''
    return '&%s' % obj.urlencode()
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/listutils.py/pop_from_GET/swapped operands of `%`