X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/293ecbd0f64bcdf5e89ab05c7000a8cea772e1f6..cf4c6f115a98cb8574c9665f34a50ae503a57b79:/forum/models/question.py diff --git a/forum/models/question.py b/forum/models/question.py index 1cc0884..2cb362c 100644 --- a/forum/models/question.py +++ b/forum/models/question.py @@ -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):