MCPcopy
hub / github.com/django/django / __or__

Method __or__

django/db/models/expressions.py:123–128  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

121 return self._combine(other, self.BITXOR, False)
122
123 def __or__(self, other):
124 if getattr(self, "conditional", False) and getattr(other, "conditional", False):
125 return Q(self) | Q(other)
126 raise NotImplementedError(
127 "Use .bitand(), .bitor(), and .bitxor() for bitwise logical operations."
128 )
129
130 def bitor(self, other):
131 return self._combine(other, self.BITOR, False)

Callers

nothing calls this directly

Calls 1

QClass · 0.90

Tested by

no test coverage detected