summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2011-04-21 13:49:00 +0200
committerGael Pasgrimaud <gael@gawel.org>2011-04-21 13:49:00 +0200
commit1b3aae04470b5d02e701c758505b3bc1124bf564 (patch)
tree863dc051cf2e2fe0d6675f04c2eeb6f3e144e65d
parente9d2b7ae0104925dd4ab3fb28232abb355804a18 (diff)
downloadaskbot-1b3aae04470b5d02e701c758505b3bc1124bf564.tar.gz
askbot-1b3aae04470b5d02e701c758505b3bc1124bf564.tar.bz2
askbot-1b3aae04470b5d02e701c758505b3bc1124bf564.zip
well tested code
-rw-r--r--askbot/models/question.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py
index d1570877..bbfa4cfd 100644
--- a/askbot/models/question.py
+++ b/askbot/models/question.py
@@ -112,7 +112,7 @@ class QuestionQuerySet(models.query.QuerySet):
return self.extra(**extra_kwargs)
else:
#fallback to dumb title match search
- return extra(
+ return self.extra(
where=['title like %s'],
params=['%' + search_query + '%']
)