diff options
| author | Dotan Agmon <agmond@users.noreply.github.com> | 2015-12-10 15:03:38 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-10 17:51:00 -0500 |
| commit | e7bdc72e1746f11497b20336cfc8798bfa9a46ba (patch) | |
| tree | 117f3babfec6cbeb55a4b2f86dae30731c8fc172 | |
| parent | 722fae4b5159b2810e252e3385936f86f04eb09b (diff) | |
[1.9.x] Fixed incorrect examples in ArrayField docs.
Backport of a44dc200d0cbd651f66a2082aa9909ff8f51a659 from master
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 587c44a435..9989969651 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -222,9 +222,9 @@ lookups available after the transform do not change. For example:: >>> Post.objects.create(name='Third post', tags=['django', 'python', 'thoughts']) >>> Post.objects.filter(tags__0_1=['thoughts']) - [<Post: First post>] + [<Post: First post>, <Post: Second post>] - >>> Post.objects.filter(tags__0_2__contains='thoughts') + >>> Post.objects.filter(tags__0_2__contains=['thoughts']) [<Post: First post>, <Post: Second post>] .. note:: |
