

def _lookup_param_1_3(self):
    lookup_params = self.params.copy()
    for i in (ALL_VAR, ORDER_VAR, ORDER_TYPE_VAR, SEARCH_VAR, IS_POPUP_VAR, TO_FIELD_VAR):
        if (i in lookup_params):
            del lookup_params[key]
    for (key, value) in lookup_params.items():
        if (not isinstance(key, str)):
            del lookup_params[key]
            lookup_params[smart_str(key)] = value
        if key.endswith('__in'):
            value = value.split(',')
            lookup_params[key] = value
        if key.endswith('__isnull'):
            if (value.lower() in ('', 'false')):
                value = False
            else:
                value = True
            lookup_params[key] = value
        if (not self.model_admin.lookup_allowed(key, value)):
            raise SuspiciousOperation(('Filtering by %s not allowed' % key))
    return lookup_params

dataset/ETHPy150Open MongoEngine/django-mongoengine/django_mongoengine/mongo_admin/views.py DocumentChangeList._lookup_param_1_3/VarMisuse@51/79 `i`->`key`