]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/answer.py
make {% comments %} template tag decoratable and add ability to attach additional...
[osqa.git] / forum / models / answer.py
index 090e19d004a5d8db4ebeabb82f1f7deaafbdf8e0..04735a4cc537c3bf81aacac7318749fb4d71e2c7 100644 (file)
@@ -7,16 +7,16 @@ class Answer(Node):
     class Meta(Node.Meta):
         proxy = True
 
-    @property    
+    @property
     def accepted(self):
-        return self.extra_action
+        return self.nis.accepted
 
     @property
     def headline(self):
         return self.question.headline
 
     def get_absolute_url(self):
-        return '%s#%s' % (self.question.get_absolute_url(), self.id)
+        return '%s/%s' % (self.question.get_absolute_url(), self.id)
 
 
 class AnswerRevision(NodeRevision):