def add_to_dict(data, key, value):
    """
    A helper function to add "value" to the set of values for "key", whether or
    not "key" already exists.
    """
    if data in key:
        data[key].add(value)
    else:
        data[key] = set([value])
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/sql/query.py/add_to_dict/swapped operands of `in`