]> git.openstreetmap.org Git - osqa.git/commitdiff
we need to be able to take additional keyword arguments from the search manager
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 15 Jun 2012 18:17:36 +0000 (18:17 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 15 Jun 2012 18:17:36 +0000 (18:17 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1272 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/question.py

index 6fae319e79088aeef1e9ccb5b625d11be12369c9..5a7786de19092a3abed5a0d018a7f4c3053f198e 100644 (file)
@@ -3,7 +3,7 @@ from tag import Tag
 from django.utils.translation import ugettext as _
 
 class QuestionManager(NodeManager):
 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):
         return False, self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords))
 
 class Question(Node):