Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Individual keys
- Get json values by key or key path::

from django_postgres_extensions.models.expressions import Key
obj = Product.objectsannotate(Key('description', 'Details')).get()
obj = Product.objects.annotate(Key('description', 'Details')).get()
obj = Product.objects.annotate(Key('description', 'Details__Rating')).get()
obj = Product.objects.annotate(Key('description', 'Tags__1')).get()

Expand Down Expand Up @@ -68,4 +68,4 @@ To use it give the fields keyword argument::

The field would look like:

.. image:: json_field.jpg
.. image:: json_field.jpg