diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-24 16:59:29 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-24 16:59:29 -0400 |
commit | 9dac785a3416e3472a69155247ad5d5af58636db (patch) | |
tree | 00bd9f66a6d1a08ecdc6271a2beec1f6c3f8516a /forum/models/answer.py | |
parent | 1ca11a43c74af6c895ed330d9b115dcc335d6160 (diff) | |
download | askbot-9dac785a3416e3472a69155247ad5d5af58636db.tar.gz askbot-9dac785a3416e3472a69155247ad5d5af58636db.tar.bz2 askbot-9dac785a3416e3472a69155247ad5d5af58636db.zip |
preparing to fix fulltext search - some simple migrations
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 |