From 3756ed30ebb5ca370d3b55d99262284da1a9c33e Mon Sep 17 00:00:00 2001 From: jordan Date: Fri, 15 Jun 2012 18:17:36 +0000 Subject: [PATCH] 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 --- forum/models/question.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.5