diff options
Diffstat (limited to 'forum/models/answer.py')
-rwxr-xr-x | forum/models/answer.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/forum/models/answer.py b/forum/models/answer.py index 25a885ee..8910ea39 100755 --- a/forum/models/answer.py +++ b/forum/models/answer.py @@ -94,6 +94,7 @@ class Answer(Content, DeletableContent): self.last_edited_at = edited_at self.last_edited_by = edited_by self.html = sanitize_html(markdowner.convert(text)) + self.text = text #todo: bug wiki has no effect here self.save() @@ -136,9 +137,6 @@ class Answer(Content, DeletableContent): else: return None - def get_latest_revision(self): - return self.revisions.all()[0] - def get_question_title(self): return self.question.title |