X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/ecd9fa68ea62902f79744b458e4ea2ed95ce00ac..3ef231f42d6b4d94e7cad81053e29d2dc7e7a331:/forum/models/answer.py?ds=inline diff --git a/forum/models/answer.py b/forum/models/answer.py index 564605e..04735a4 100644 --- a/forum/models/answer.py +++ b/forum/models/answer.py @@ -7,16 +7,16 @@ class Answer(Node): class Meta(Node.Meta): proxy = True - #@property - #def accepted(self): - # return self.nstate.accepted + @property + def accepted(self): + 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):