This commit is contained in:
Christopher Neugebauer 2016-08-16 09:35:34 +10:00 committed by GitHub
parent 20ad44236b
commit 32c2d697b0

View file

@ -257,7 +257,11 @@ def review_admin(request, section_slug):
continue continue
already_seen.add(user.pk) 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_votes = LatestVote.objects.filter(
user=user, user=user,
proposal__kind__section__slug=section_slug, proposal__kind__section__slug=section_slug,