]> git.openstreetmap.org Git - osqa.git/blob - forum/models/answer.py
took out some unnessisary imports.
[osqa.git] / forum / models / answer.py
1 from base import *
2 from django.utils.translation import ugettext as _
3
4 class Answer(Node):
5     friendly_name = _("answer")
6
7     class Meta(Node.Meta):
8         proxy = True
9
10     @property    
11     def accepted(self):
12         return self.extra_action
13
14     @property
15     def headline(self):
16         return self.question.headline
17
18     def get_absolute_url(self):
19         return '%s#%s' % (self.question.get_absolute_url(), self.id)
20
21
22 class AnswerRevision(NodeRevision):
23     class Meta:
24         proxy = True