1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed incorrect examples in ArrayField docs.

This commit is contained in:
Dotan Agmon 2015-12-10 15:03:38 +02:00 committed by Tim Graham
parent 3a36c80795
commit a44dc200d0

View File

@ -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::