diff options
| author | sage <laymonage@gmail.com> | 2020-07-26 11:54:40 +0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-28 20:53:11 +0200 |
| commit | 23ce3d84917bf6e94e9d449a1550d974d9103eed (patch) | |
| tree | 4411310357442e0fd6242334c0a627d8d4ff989e /docs | |
| parent | 247bcef6b4f8625e80b6f07e264b7bbdf330194d (diff) | |
[3.1.x] Fixed #31829 -- Used JSONField __contains lookup on key transforms.
Backport of 2d8dcba03aae200aaa103ec1e69f0a0038ec2f85 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/queries.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index b3463cb4ce..f10d92576d 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -905,10 +905,10 @@ To query for missing keys, use the ``isnull`` lookup:: The lookup examples given above implicitly use the :lookup:`exact` lookup. Key, index, and path transforms can also be chained with: - :lookup:`contains`, :lookup:`icontains`, :lookup:`endswith`, - :lookup:`iendswith`, :lookup:`iexact`, :lookup:`regex`, :lookup:`iregex`, - :lookup:`startswith`, :lookup:`istartswith`, :lookup:`lt`, :lookup:`lte`, - :lookup:`gt`, and :lookup:`gte` lookups. + :lookup:`icontains`, :lookup:`endswith`, :lookup:`iendswith`, + :lookup:`iexact`, :lookup:`regex`, :lookup:`iregex`, :lookup:`startswith`, + :lookup:`istartswith`, :lookup:`lt`, :lookup:`lte`, :lookup:`gt`, and + :lookup:`gte`, as well as with :ref:`containment-and-key-lookups`. .. warning:: @@ -937,8 +937,10 @@ To query for missing keys, use the ``isnull`` lookup:: On PostgreSQL, if only one key or index is used, the SQL operator ``->`` is used. If multiple operators are used then the ``#>`` operator is used. -Containment and key operations ------------------------------- +.. _containment-and-key-lookups: + +Containment and key lookups +--------------------------- .. fieldlookup:: jsonfield.contains |
