MCPcopy
hub / github.com/django/django / intersection

Method intersection

django/db/models/query.py:1725–1732  ·  view source on GitHub ↗
(self, *other_qs)

Source from the content-addressed store, hash-verified

1723 return self._combinator_query("union", *other_qs, all=all)
1724
1725 def intersection(self, *other_qs):
1726 # If any query is an EmptyQuerySet, return it.
1727 if isinstance(self, EmptyQuerySet):
1728 return self
1729 for other in other_qs:
1730 if isinstance(other, EmptyQuerySet):
1731 return other
1732 return self._combinator_query("intersection", *other_qs)
1733
1734 def difference(self, *other_qs):
1735 # If the query is an EmptyQuerySet, return it.

Calls 1

_combinator_queryMethod · 0.95