kopia lustrzana https://github.com/wagtail/wagtail
remove backslash from string to prevent syntax error in tsquery
rodzic
057690815b
commit
af6bf164ec
|
|
@ -228,7 +228,9 @@ class PostgresSearchQueryCompiler(BaseSearchQueryCompiler):
|
|||
return self.get_search_field(sub_field_name, field.fields)
|
||||
|
||||
def prepare_word(self, word):
|
||||
return unidecode(word)
|
||||
# remove backslash from string to prevent syntax error in tsquery
|
||||
stripped_word = word.replace("\\", "")
|
||||
return unidecode(stripped_word)
|
||||
|
||||
def build_tsquery_content(self, query, group=False):
|
||||
if isinstance(query, PlainText):
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue