diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-24 21:03:33 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-24 21:03:33 -0400 |
commit | a40ca92bd602085d2ab517314935cf563b1349c2 (patch) | |
tree | 117ad83788711481c0bd71f4d64c9b05e2c42ad7 | |
parent | e673f4a6b977816fb2b9048083e7549d3de7227c (diff) | |
download | askbot-a40ca92bd602085d2ab517314935cf563b1349c2.tar.gz askbot-a40ca92bd602085d2ab517314935cf563b1349c2.tar.bz2 askbot-a40ca92bd602085d2ab517314935cf563b1349c2.zip |
fixed two bugs on editing question and answer
-rw-r--r-- | forum/models/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forum/models/__init__.py b/forum/models/__init__.py index d907b27f..6777339a 100644 --- a/forum/models/__init__.py +++ b/forum/models/__init__.py @@ -420,7 +420,7 @@ def record_revision_question_event(instance, created, **kwargs): receiving_users.update( ) - for a in instance.question.answers: + for a in instance.question.answers.all(): receiving_users.update(a.get_author_list()) receiving_users.update( @@ -451,7 +451,7 @@ def record_revision_answer_event(instance, created, **kwargs): receiving_users = set() receiving_users.update( instance.answer.get_author_list( - including_comments = True + include_comments = True ) ) receiving_users.update(instance.answer.question.get_author_list()) |