]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/question.py
Fixes OSQA-406, Validation hash is not reset when email address is changed (enabling...
[osqa.git] / forum / models / question.py
index 1cc0884fcd79b615c00781f5a2afa5eb5247d0b1..2cb362cf8deee6b777387396a6510ceeeb3b56c1 100644 (file)
@@ -1,14 +1,12 @@
 from base import *
 from tag import Tag
 from django.utils.translation import ugettext as _
-from forum.modules.decorators import decoratable
 
 question_view = django.dispatch.Signal(providing_args=['instance', 'user'])
 
 class QuestionManager(NodeManager):
-    @decoratable.method
     def search(self, keywords):
-        return self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords))
+        return False, self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords))
 
 class Question(Node):
     class Meta(Node.Meta):