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:48:38 -0500 |
| commit | a44dc200d0cbd651f66a2082aa9909ff8f51a659 (patch) | |
| tree | f4fb9f8ce40fbbfc8e0eec37b2e5b1dd48b03bb8 /docs/ref | |
| parent | 3a36c8079544c83dcdea4e52181efcd2d1e86b9c (diff) | |
Fixed incorrect examples in ArrayField docs.
Diffstat (limited to 'docs/ref')
| -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 defd670e12..e94dd84bda 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']) - <QuerySet [<Post: First post>]> + <QuerySet [<Post: First post>, <Post: Second post>]> - >>> Post.objects.filter(tags__0_2__contains='thoughts') + >>> Post.objects.filter(tags__0_2__contains=['thoughts']) <QuerySet [<Post: First post>, <Post: Second post>]> .. note:: |
