From 32c2d697b0f08fa2e928f90bce41b6429a5c8071 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer <_@chrisjrn.com> Date: Tue, 16 Aug 2016 09:35:34 +1000 Subject: [PATCH] PEBACK 3 --- symposion/reviews/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/symposion/reviews/views.py b/symposion/reviews/views.py index 8861c8d2..99c5bbdb 100644 --- a/symposion/reviews/views.py +++ b/symposion/reviews/views.py @@ -257,7 +257,11 @@ def review_admin(request, section_slug): continue already_seen.add(user.pk) - user.comment_count = Review.objects.filter(user=user).count() + user.comment_count = Review.objects.filter( + user=user, + proposal__kind__section__slug=section_slug, + ).count() + user_votes = LatestVote.objects.filter( user=user, proposal__kind__section__slug=section_slug,