In the documentation on this page:
https://docs.djangoproject.com/en/2.0/topics/db/examples/many_to_many/

you have the following example:

>>> Article.objects.filter(publications__in=[1,2]).distinct()<QuerySet 
>>> [<Article: Django lets you build Web apps easily>, <Article: NASA uses 
>>> Python>]>


Does the __in for many to many fields mean for ANY publication in [1,2]. So 
does Django go through every publication in every article and if any of them 
are in the list on the right that Article is included in the result?



-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/331d1f73-ce56-4296-a9e3-bcbd033a1530%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to