Add to tags to base filters
parent
4257f6d5a0
commit
aad40e4ba0
|
@ -459,6 +459,7 @@ class QFilter(FilterBackend):
|
||||||
where_clause = ("""
|
where_clause = ("""
|
||||||
to_tsvector('english_nostop',
|
to_tsvector('english_nostop',
|
||||||
coalesce({table}.subject, '') || ' ' ||
|
coalesce({table}.subject, '') || ' ' ||
|
||||||
|
coalesce(array_to_string({table}.tags, ' '), '') || ' ' ||
|
||||||
coalesce({table}.ref) || ' ' ||
|
coalesce({table}.ref) || ' ' ||
|
||||||
coalesce({table}.description, '')) @@ to_tsquery('english_nostop', %s)
|
coalesce({table}.description, '')) @@ to_tsquery('english_nostop', %s)
|
||||||
""".format(table=table))
|
""".format(table=table))
|
||||||
|
|
Loading…
Reference in New Issue