

def get_db_prep_lookup(self, value, connection):
    if isinstance(value, (tuple, list)):
        params = ([connection.ops.Adapter(value[0])] + list(value)[1:])
    else:
        params = [connection.ops.Adapter(value)]
    return ('%s', params)

dataset/ETHPy150Open django/django/django/contrib/gis/db/models/lookups.py GISLookup.get_db_prep_lookup/original