mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
[3.1.x] Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".
Backport of 02447fb133
from master
This commit is contained in:
parent
3116444559
commit
028a5f86f2
3 changed files with 22 additions and 20 deletions
|
@ -960,6 +960,10 @@ contained in the top-level of the field. For example::
|
|||
>>> Dog.objects.filter(data__contains={'breed': 'collie'})
|
||||
<QuerySet [<Dog: Meg>]>
|
||||
|
||||
.. admonition:: Oracle
|
||||
|
||||
``contains`` is not supported on Oracle.
|
||||
|
||||
.. fieldlookup:: jsonfield.contained_by
|
||||
|
||||
``contained_by``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue