]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/question.py
Removes the necessity of the "decoratable" decorator in modules and makes the api...
[osqa.git] / forum / models / question.py
index a7ecd221d549f055d9ab790325014db67daa8209..7902a503646f92cb44910128ddc064ac219e1869 100644 (file)
@@ -1,12 +1,10 @@
 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))
 
@@ -20,9 +18,9 @@ class Question(Node):
     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):