diff --git a/django/contrib/postgres/search.py b/django/contrib/postgres/search.py index 1a4be55cb9..f0291c5ed3 100644 --- a/django/contrib/postgres/search.py +++ b/django/contrib/postgres/search.py @@ -415,17 +415,11 @@ class LexemeCombinable: # On Combinable, these are not implemented to reduce confusion with Q. In # this case we are actually (ab)using them to do logical combination so # it's consistent with other usage in Django. - def bitand(self, other): - return self._combine(other, self.BITAND, False) - - def bitor(self, other): + def __or__(self, other): return self._combine(other, self.BITOR, False) - def __or__(self, other): - return self.bitor(other) - def __and__(self, other): - return self.bitand(other) + return self._combine(other, self.BITAND, False) class Lexeme(LexemeCombinable, Value):