]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/question.py
Fix in query cache
[osqa.git] / forum / models / question.py
index 136d3de78590cc3d2fbba2604ef09e412489b63b..5a7786de19092a3abed5a0d018a7f4c3053f198e 100644 (file)
@@ -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):
@@ -27,6 +27,9 @@ class Question(Node):
 
     @property
     def headline(self):
+        return self._headline()
+
+    def _headline(self):
         if self.nis.deleted:
             return _('[deleted] ') + self.title