mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 14:09:28 -02:30
Make polymorphic_ctype aliasing work in filters
Previousy this would fall through and get caught by the type checker
This commit is contained in:
@@ -143,8 +143,7 @@ class FieldLookupBackend(BaseFilterBackend):
|
|||||||
# for polymorphic_ctype__model lookups.
|
# for polymorphic_ctype__model lookups.
|
||||||
if new_lookup.startswith('polymorphic_ctype__model'):
|
if new_lookup.startswith('polymorphic_ctype__model'):
|
||||||
value = value.replace('_','')
|
value = value.replace('_','')
|
||||||
|
elif new_lookup.endswith('__isnull'):
|
||||||
if new_lookup.endswith('__isnull'):
|
|
||||||
value = to_python_boolean(value)
|
value = to_python_boolean(value)
|
||||||
elif new_lookup.endswith('__in'):
|
elif new_lookup.endswith('__in'):
|
||||||
items = []
|
items = []
|
||||||
|
|||||||
Reference in New Issue
Block a user