(self, *other_qs)
| 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. |