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))
friendly_name = _("question")
objects = QuestionManager()
- #@property
- #def closed(self):
- # return self.nstate.closed
+ @property
+ def closed(self):
+ return self.nis.closed
@property
def view_count(self):