diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-11-18 17:52:25 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-11-20 19:15:41 +0100 |
commit | 3d7878e1088138fbc3971313a74c91b79bbea643 (patch) | |
tree | 61c3bef248fd9c46d39dfd2b89c414c255c42395 /hyperkitty/views/list.py | |
parent | 467de0a0500d07b5687e4540b201016643857d30 (diff) | |
download | hyperkitty-3d7878e1088138fbc3971313a74c91b79bbea643.tar.gz hyperkitty-3d7878e1088138fbc3971313a74c91b79bbea643.tar.xz hyperkitty-3d7878e1088138fbc3971313a74c91b79bbea643.zip |
Improve and write tests for the set_thread_votes function
Diffstat (limited to 'hyperkitty/views/list.py')
-rw-r--r-- | hyperkitty/views/list.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hyperkitty/views/list.py b/hyperkitty/views/list.py index 8feff11..d9a0ace 100644 --- a/hyperkitty/views/list.py +++ b/hyperkitty/views/list.py @@ -89,7 +89,7 @@ def _thread_list(request, mlist, threads, template_name='thread_list.html', extr participants.update(thread.participants) # Votes - set_thread_votes(thread, request.user) + set_thread_votes(thread) # Favorites thread.favorite = False @@ -153,7 +153,7 @@ def overview(request, mlist_fqdn=None): threads = [] for thread_obj in threads_result: # Votes - set_thread_votes(thread_obj, request.user) + set_thread_votes(thread_obj) thread_obj.category_widget = get_category_widget( None, thread_obj.category)[0] thread_obj.unread = is_thread_unread(request, mlist.name, thread_obj) |