Add to tags to base filters

remotes/origin/issue/4795/notification_even_they_are_disabled
Jesús Espino 2016-07-08 11:59:38 +02:00 committed by David Barragán Merino
parent 4257f6d5a0
commit aad40e4ba0
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ class QFilter(FilterBackend):
where_clause = ("""
to_tsvector('english_nostop',
coalesce({table}.subject, '') || ' ' ||
coalesce(array_to_string({table}.tags, ' '), '') || ' ' ||
coalesce({table}.ref) || ' ' ||
coalesce({table}.description, '')) @@ to_tsquery('english_nostop', %s)
""".format(table=table))