From 8fd8d1743c4da700572f1bfa06227a1338ad0250 Mon Sep 17 00:00:00 2001 From: Sergey Grigorchuk Date: Tue, 25 Dec 2018 00:03:41 +0300 Subject: [PATCH] Update json.rst Missing the dot after objects --- docs/json.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/json.rst b/docs/json.rst index fdf9826..8f520c7 100644 --- a/docs/json.rst +++ b/docs/json.rst @@ -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() @@ -68,4 +68,4 @@ To use it give the fields keyword argument:: The field would look like: -.. image:: json_field.jpg \ No newline at end of file +.. image:: json_field.jpg