

def __invert__(self):
    obj = type(self)()
    obj.add(self, self.AND)
    obj.negate()
    return obj

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/models/query_utils.py Q.__invert__/original