diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-25 16:46:34 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-25 16:46:34 -0400 |
commit | 02510a462392dd2e9e46e945d51efb374e0dc06f (patch) | |
tree | eb46353c81585053ea3cc815dba74ea46dc53125 | |
parent | ea6d19233238120fbf6f2c9ed173e2b51fba21c1 (diff) | |
download | askbot-02510a462392dd2e9e46e945d51efb374e0dc06f.tar.gz askbot-02510a462392dd2e9e46e945d51efb374e0dc06f.tar.bz2 askbot-02510a462392dd2e9e46e945d51efb374e0dc06f.zip |
fixed error in denormalization - missed first time b/c it has to be done in two places for each Q and A!
-rwxr-xr-x | forum/models/answer.py | 1 | ||||
-rwxr-xr-x | forum/models/question.py | 15 |
2 files changed, 9 insertions, 7 deletions
diff --git a/forum/models/answer.py b/forum/models/answer.py index 8910ea39..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: diff --git a/forum/models/question.py b/forum/models/question.py index 7b70f538..683f7a3c 100755 --- a/forum/models/question.py +++ b/forum/models/question.py @@ -34,15 +34,16 @@ class QuestionManager(models.Manager): html = sanitize_html(markdowner.convert(text)) summary = strip_tags(html)[:120] question = Question( - title = title, - author = author, - added_at = added_at, + title = title, + author = author, + added_at = added_at, last_activity_at = added_at, last_activity_by = author, - wiki = wiki, - tagnames = tagnames, - html = html, - summary = summary + wiki = wiki, + tagnames = tagnames, + html = html, + text = text, + summary = summary ) if question.wiki: question.last_edited_by = question.author |