diff --git a/awx/api/filters.py b/awx/api/filters.py index 9f34723d48..f4c61b64c8 100644 --- a/awx/api/filters.py +++ b/awx/api/filters.py @@ -143,8 +143,7 @@ class FieldLookupBackend(BaseFilterBackend): # for polymorphic_ctype__model lookups. if new_lookup.startswith('polymorphic_ctype__model'): value = value.replace('_','') - - if new_lookup.endswith('__isnull'): + elif new_lookup.endswith('__isnull'): value = to_python_boolean(value) elif new_lookup.endswith('__in'): items = []