summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael Käufl <django@c.michael-kaeufl.de>2017-09-29 09:38:57 +0200
committerTim Graham <timograham@gmail.com>2017-09-29 08:50:22 -0400
commit259fec8de0814ba1277774b030bc6e3f99e40268 (patch)
tree9bd9b92162bdbf3ad1ca19cc482498d11b4a3c94 /docs
parentf1b713024e3a1e8c6361ea407cb8248224f7cc82 (diff)
Fixed #28651 -- Fixed typo in docs/ref/contrib/postgres/fields.txt.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/fields.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt
index 38ca9200cd..f151986ff8 100644
--- a/docs/ref/contrib/postgres/fields.txt
+++ b/docs/ref/contrib/postgres/fields.txt
@@ -185,11 +185,10 @@ available for :class:`~django.db.models.IntegerField`. For example::
Index transforms
~~~~~~~~~~~~~~~~
-This class of transforms allows you to index into the array in queries. Any
-non-negative integer can be used. There are no errors if it exceeds the
-:attr:`size <ArrayField.size>` of the array. The lookups available after the
-transform are those from the :attr:`base_field <ArrayField.base_field>`. For
-example::
+Index transforms index into the array. Any non-negative integer can be used.
+There are no errors if it exceeds the :attr:`size <ArrayField.size>` of the
+array. The lookups available after the transform are those from the
+:attr:`base_field <ArrayField.base_field>`. For example::
>>> Post.objects.create(name='First post', tags=['thoughts', 'django'])
>>> Post.objects.create(name='Second post', tags=['thoughts'])
@@ -214,9 +213,9 @@ example::
Slice transforms
~~~~~~~~~~~~~~~~
-This class of transforms allow you to take a slice of the array. Any two
-non-negative integers can be used, separated by a single underscore. The
-lookups available after the transform do not change. For example::
+Slice transforms take a slice of the array. Any two non-negative integers can
+be used, separated by a single underscore. The lookups available after the
+transform do not change. For example::
>>> Post.objects.create(name='First post', tags=['thoughts', 'django'])
>>> Post.objects.create(name='Second post', tags=['thoughts'])