From 663d7d0a12f0c312ba7d042a12a7b607c131bad0 Mon Sep 17 00:00:00 2001 From: ACMCMC <20495460+ACMCMC@users.noreply.github.com> Date: Tue, 23 Nov 2021 09:51:17 +0100 Subject: [PATCH] Solved missing `invert` attribute bug --- wagtail/search/backends/database/mysql/query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail/search/backends/database/mysql/query.py b/wagtail/search/backends/database/mysql/query.py index 888ca8368c..4fb370f9fe 100644 --- a/wagtail/search/backends/database/mysql/query.py +++ b/wagtail/search/backends/database/mysql/query.py @@ -11,6 +11,7 @@ from django.db.models.sql.compiler import SQLCompiler class LexemeCombinable(Expression): BITAND = '+' BITOR = '' + invert = False # By default, it is not inverted def _combine(self, other, connector, reversed, node=None): if not isinstance(other, LexemeCombinable):