diff options
Diffstat (limited to 'docs/ref/contrib/postgres/fields.txt')
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 150187b0bc..5ae5a2e2ce 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -24,7 +24,7 @@ may be a good choice for the :ref:`range fields <range-fields>` and .. class:: ArrayField(base_field, size=None, **options) - A field for storing lists of data. Most field types can be used, you simply + A field for storing lists of data. Most field types can be used, and you pass another field instance as the :attr:`base_field <ArrayField.base_field>`. You may also specify a :attr:`size <ArrayField.size>`. ``ArrayField`` can be nested to store multi-dimensional @@ -333,7 +333,7 @@ We will use the following example model:: Key lookups ~~~~~~~~~~~ -To query based on a given key, you simply use that key as the lookup name:: +To query based on a given key, you can use that key as the lookup name:: >>> Dog.objects.create(name='Rufus', data={'breed': 'labrador'}) >>> Dog.objects.create(name='Meg', data={'breed': 'collie'}) @@ -537,8 +537,7 @@ We will use the following example model:: Key, index, and path lookups ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -To query based on a given dictionary key, simply use that key as the lookup -name:: +To query based on a given dictionary key, use that key as the lookup name:: >>> Dog.objects.create(name='Rufus', data={ ... 'breed': 'labrador', |
