mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 07:48:39 -05:00
AC-728 Added chain__ filter prefix.
This commit is contained in:
@@ -83,6 +83,20 @@ with `or__`:
|
||||
?or__field=value&or__field=othervalue
|
||||
?or__not__field=value&or__field=othervalue
|
||||
|
||||
(_New in AWX 1.5_) The default AND filtering applies all filters simultaneously
|
||||
to each related object being filtered across database relationships. The chain
|
||||
filter instead applies filters separately for each related object. To use,
|
||||
prefix the query string parameter with `chain__`:
|
||||
|
||||
?chain__related__field=value&chain__related__field2=othervalue
|
||||
?chain__not__related__field=value&chain__related__field2=othervalue
|
||||
|
||||
If the first query above were written as
|
||||
`?related__field=value&related__field2=othervalue`, it would return only the
|
||||
primary objects where the *same* related object satisfied both conditions. As
|
||||
written using the chain filter, it would return the intersection of primary
|
||||
objects matching each condition.
|
||||
|
||||
Field lookups may also be used for more advanced queries, by appending the
|
||||
lookup to the field name:
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
{% if new_in_13 %}> _New in AWX 1.3_{% endif %}
|
||||
{% if new_in_14 %}> _New in AWX 1.4_{% endif %}
|
||||
{% if new_in_15 %}> _New in AWX 1.5_{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user