MCPcopy
hub / github.com/django/django / __and__

Method __and__

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

Source from the content-addressed store, hash-verified

95 return self._combine(other, self.POW, False)
96
97 def __and__(self, other):
98 if getattr(self, "conditional", False) and getattr(other, "conditional", False):
99 return Q(self) & Q(other)
100 raise NotImplementedError(
101 "Use .bitand(), .bitor(), and .bitxor() for bitwise logical operations."
102 )
103
104 def bitand(self, other):
105 return self._combine(other, self.BITAND, False)

Callers

nothing calls this directly

Calls 1

QClass · 0.90

Tested by

no test coverage detected