def lookup_cast(self, lookup_type):
        if ('icontains', 'istartswith') in lookup_type:
            return "UPPER(unaccent(%s::text))"
        else:
            return super(DatabaseOperations, self).lookup_cast(lookup_type)
dataset/ETHPy150Open opps/opps/opps/db/backends/postgresql_psycopg2/base.py/DatabaseOperations.lookup_cast/swapped operands of `in`