(self, other)
| 501 | return combined |
| 502 | |
| 503 | def __or__(self, other): |
| 504 | self._check_operator_queryset(other, "|") |
| 505 | self._merge_sanity_check(other) |
| 506 | if isinstance(self, EmptyQuerySet): |
| 507 | return other |
| 508 | if isinstance(other, EmptyQuerySet): |
| 509 | return self |
| 510 | query = ( |
| 511 | self |
| 512 | if self.query.can_filter() |
| 513 | else self.model._base_manager.filter(pk__in=self.values("pk")) |
| 514 | ) |
| 515 | combined = query._chain() |
| 516 | combined._merge_known_related_objects(other) |
| 517 | if not other.query.can_filter(): |
| 518 | other = other.model._base_manager.filter(pk__in=other.values("pk")) |
| 519 | combined.query.combine(other.query, sql.OR) |
| 520 | return combined |
| 521 | |
| 522 | def __xor__(self, other): |
| 523 | self._check_operator_queryset(other, "^") |
nothing calls this directly
no test coverage detected