diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-07 00:54:39 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-07 00:54:39 -0400 |
commit | 57033196f904477631c397fab50681f0d1aa7834 (patch) | |
tree | 59b49b40680af03ef5c0a31782c19737e404257b /forum/models/answer.py | |
parent | 430ce40aea1fddd086640bbd54242e6832478e49 (diff) | |
download | askbot-57033196f904477631c397fab50681f0d1aa7834.tar.gz askbot-57033196f904477631c397fab50681f0d1aa7834.tar.bz2 askbot-57033196f904477631c397fab50681f0d1aa7834.zip |
notification records are correct but response counters are exxagerated. added unit tests for response counters
Diffstat (limited to 'forum/models/answer.py')
-rw-r--r-- | forum/models/answer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/forum/models/answer.py b/forum/models/answer.py index 48b1c464..b4e8963e 100644 --- a/forum/models/answer.py +++ b/forum/models/answer.py @@ -172,6 +172,9 @@ class Answer(content.Content, DeletableContent): include_comments = True ) ) + for answer in self.question.answers.all(): + receiving_users.update(answer.get_author_list()) + receiving_users -= set(exclude_list) return list(receiving_users) |