summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-08-17 11:18:20 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-08-17 11:18:20 -0400
commit8b41842bfc6461a8b2f9b6bc9d80a3a82d54e81d (patch)
tree716f73f14bd8baf8d4e46155fc768d74119930fd
parentc10a87ecabd0a8e36b7eb2801ec0d23051c5e9d1 (diff)
downloadaskbot-8b41842bfc6461a8b2f9b6bc9d80a3a82d54e81d.tar.gz
askbot-8b41842bfc6461a8b2f9b6bc9d80a3a82d54e81d.tar.bz2
askbot-8b41842bfc6461a8b2f9b6bc9d80a3a82d54e81d.zip
fixed shared with user count
-rw-r--r--askbot/views/readers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/views/readers.py b/askbot/views/readers.py
index a94ccc2d..268227eb 100644
--- a/askbot/views/readers.py
+++ b/askbot/views/readers.py
@@ -568,12 +568,12 @@ def question(request, id):#refactor - long subroutine. display question body, an
#shared with ...
users_count, groups_count = thread.get_sharing_info()
shared_users = thread.get_users_shared_with(
- max_count=3,
+ max_count=2,
exclude_user=request.user
)
sharing_info = {
'users': shared_users,
- 'groups': thread.get_groups_shared_with(max_count=3),
+ 'groups': thread.get_groups_shared_with(max_count=2),
'more_users_count': max(0, users_count - 3),
'more_groups_count': max(0, groups_count - 3)
}