mirror of
https://github.com/django/django.git
synced 2025-09-27 06:26:54 +03:00
Fix an error in a documented lookup example.
This commit is contained in:
parent
e98d303562
commit
b625e861e5
|
@ -134,7 +134,7 @@ passed. It uses the SQL operator ``<@``. For example::
|
||||||
>>> Post.objects.create(name='Third post', tags=['tutorial', 'django'])
|
>>> Post.objects.create(name='Third post', tags=['tutorial', 'django'])
|
||||||
|
|
||||||
>>> Post.objects.filter(tags__contained_by=['thoughts', 'django'])
|
>>> Post.objects.filter(tags__contained_by=['thoughts', 'django'])
|
||||||
[<Post: First post>]
|
[<Post: First post>, <Post: Second post>]
|
||||||
|
|
||||||
>>> Post.objects.filter(tags__contained_by=['thoughts', 'django', 'tutorial'])
|
>>> Post.objects.filter(tags__contained_by=['thoughts', 'django', 'tutorial'])
|
||||||
[<Post: First post>, <Post: Second post>, <Post: Third post>]
|
[<Post: First post>, <Post: Second post>, <Post: Third post>]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user