summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/search.py
diff options
context:
space:
mode:
authoradamb70 <adam.boaler@hotmail.com>2020-02-05 01:51:13 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-02-06 07:52:50 +0100
commit4c6ab1f2aa2a99d17ab308c0156f971a13d3fcaf (patch)
tree25aedf4a2affb4101812067e3bb572f96ab0ebf6 /django/contrib/postgres/search.py
parent72b97a5b1e22f5d464045be2e33f0436fa8061d3 (diff)
downloaddjango-4c6ab1f2aa2a99d17ab308c0156f971a13d3fcaf.tar.gz
Fixed #28528 -- Allowed combining SearchVectors with different configs.
Diffstat (limited to 'django/contrib/postgres/search.py')
-rw-r--r--django/contrib/postgres/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/search.py b/django/contrib/postgres/search.py
index 000241ba24..2786251548 100644
--- a/django/contrib/postgres/search.py
+++ b/django/contrib/postgres/search.py
@@ -56,7 +56,7 @@ class SearchVectorCombinable:
ADD = '||'
def _combine(self, other, connector, reversed):
- if not isinstance(other, SearchVectorCombinable) or not self.config == other.config:
+ if not isinstance(other, SearchVectorCombinable):
raise TypeError(
'SearchVector can only be combined with other SearchVector '
'instances, got %s.' % type(other).__name__