From: hernani Date: Thu, 23 Jun 2011 20:55:39 +0000 (+0000) Subject: Fixes an error in the mysqlfulltext module introduced in one of the previous commits. X-Git-Tag: live~243 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/d8df3977ac83876d47c7bc721db0758de2d4ea6b Fixes an error in the mysqlfulltext module introduced in one of the previous commits. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1070 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum_modules/mysqlfulltext/startup.py b/forum_modules/mysqlfulltext/startup.py index 1b12517..08926cb 100644 --- a/forum_modules/mysqlfulltext/startup.py +++ b/forum_modules/mysqlfulltext/startup.py @@ -54,5 +54,5 @@ def question_search(self, keywords): """, }, select_params=[keywords, keywords, keywords] - ).filter(Q(title__search=keywords) | Q(tagnames__search=keywords) | Q(body__search=keywords)) + ).filter(Q(ftsindex__title__search=keywords) | Q(ftsindex__tagnames__search=keywords) | Q(ftsindex__body__search=keywords)) return '-ranking', qs