mirror of
https://github.com/django/django.git
synced 2025-08-23 20:14:17 +00:00
[1.9.x] Fixed incorrect examples in ArrayField docs.
Backport of a44dc200d0
from master
This commit is contained in:
parent
722fae4b51
commit
e7bdc72e17
1 changed files with 2 additions and 2 deletions
|
@ -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.create(name='Third post', tags=['django', 'python', 'thoughts'])
|
||||||
|
|
||||||
>>> Post.objects.filter(tags__0_1=['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>]
|
[<Post: First post>, <Post: Second post>]
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue