summaryrefslogtreecommitdiffstats
path: root/forum/models/answer.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/models/answer.py')
-rwxr-xr-xforum/models/answer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/forum/models/answer.py b/forum/models/answer.py
index 25a885ee..3de6cfc4 100755
--- a/forum/models/answer.py
+++ b/forum/models/answer.py
@@ -16,6 +16,7 @@ class AnswerManager(models.Manager):
author = author,
added_at = added_at,
wiki = wiki,
+ text = text,
html = sanitize_html(markdowner.convert(text)),
)
if answer.wiki:
@@ -94,6 +95,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 +138,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