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):