MCPcopy
hub / github.com/django/django / _combinator_query

Method _combinator_query

django/db/models/query.py:1700–1710  ·  view source on GitHub ↗
(self, combinator, *other_qs, all=False)

Source from the content-addressed store, hash-verified

1698 return self._filter_or_exclude(False, args=(), kwargs=filter_obj)
1699
1700 def _combinator_query(self, combinator, *other_qs, all=False):
1701 # Clone the query to inherit the select list and everything
1702 clone = self._chain()
1703 # Clear limits and ordering so they can be reapplied
1704 clone.query.clear_ordering(force=True)
1705 clone.query.default_ordering = True
1706 self._clear_ordering_in_combined_queries(clone.query, other_qs)
1707 clone.query.clear_limits()
1708 clone.query.combinator = combinator
1709 clone.query.combinator_all = all
1710 return clone
1711
1712 def union(self, *other_qs, all=False):
1713 # If the query is an EmptyQuerySet, combine all nonempty querysets.

Callers 3

unionMethod · 0.95
intersectionMethod · 0.95
differenceMethod · 0.95

Calls 4

_chainMethod · 0.95
clear_orderingMethod · 0.80
clear_limitsMethod · 0.80

Tested by

no test coverage detected