Skip to content

Commit 0c6bca8

Browse files
committed
Merged in [16759] from rjsparks@nostrum.com:
Restrict comments total on nomcom private index to comments on positions. Fixes ietf-tools#2792. - Legacy-Id: 16826 Note: SVN reference [16759] has been migrated to Git commit 7aa57e9
2 parents 09e38df + 7aa57e9 commit 0c6bca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/nomcom/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def private_index(request, year):
206206
totals[state['slug']] = Feedback.objects.filter(nomcom=nomcom, type='questio').count()
207207
else:
208208
totals[state['slug']] = all_nominee_positions.filter(state=state['slug']).count()
209-
totals['comments'] = Feedback.objects.filter(nomcom=nomcom, type='comment').count()
209+
totals['comments'] = Feedback.objects.filter(nomcom=nomcom, type='comment', positions__isnull=False).count()
210210
totals['open'] = nomcom.position_set.filter(is_open=True).count()
211211
totals['accepting_nominations'] = nomcom.position_set.filter(accepting_nominations=True).count()
212212
totals['accepting_feedback'] = nomcom.position_set.filter(accepting_feedback=True).count()

0 commit comments

Comments
 (0)