#26511: Django 1.9 and Postgres 9.4 jsonb string containment inside JSONField
----------------------------------+--------------------------------------
Reporter: eoinmurray | Owner:
Type: Bug | Status: closed
Component: contrib.postgres | Version: 1.9
Severity: Normal | Resolution: worksforme
Keywords: postgres, jsonb | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by claudep):
* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0
Comment:
Following
https://docs.djangoproject.com/en/1.9/ref/contrib/postgres/fields
/#containment-and-key-operations, then
https://docs.djangoproject.com/en/1.9/ref/contrib/postgres/fields/#std
:fieldlookup-hstorefield.contains, you should fine the proper containment
syntax (`metadata__contains={'title': 'moon'}`).
--
Ticket URL: <https://code.djangoproject.com/ticket/26511#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.f3fdaa4b825f9c999f61bd95850bc5c7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.