AC-728 Added chain__ filter prefix.

This commit is contained in:
Chris Church
2013-11-26 13:24:45 -05:00
parent f29809a807
commit 112fe089d9
5 changed files with 52 additions and 6 deletions
+14
View File
@@ -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
View File
@@ -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 %}