From: jordan Date: Fri, 15 Jun 2012 18:17:36 +0000 (+0000) Subject: we need to be able to take additional keyword arguments from the search manager X-Git-Tag: live~45 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/3756ed30ebb5ca370d3b55d99262284da1a9c33e?hp=87dc39857d78078064df83de6e32d78b76863746 we need to be able to take additional keyword arguments from the search manager git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1272 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/models/question.py b/forum/models/question.py index 6fae319..5a7786d 100644 --- a/forum/models/question.py +++ b/forum/models/question.py @@ -3,7 +3,7 @@ from tag import Tag from django.utils.translation import ugettext as _ class QuestionManager(NodeManager): - def search(self, keywords): + def search(self, keywords, **kwargs): return False, self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords)) class Question(Node):