From aad40e4ba093bd53d444da8c8db52a057579b921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 8 Jul 2016 11:59:38 +0200 Subject: [PATCH] Add to tags to base filters --- taiga/base/filters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/taiga/base/filters.py b/taiga/base/filters.py index d9369cbd..4aa8cb09 100644 --- a/taiga/base/filters.py +++ b/taiga/base/filters.py @@ -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))