Merged in [16759] from rjsparks@nostrum.com:
Restrict comments total on nomcom private index to comments on positions. Fixes #2792.
- Legacy-Id: 16826
Note: SVN reference [16759] has been migrated to Git commit 7aa57e9f57
This commit is contained in:
commit
0c6bca8e59
|
@ -206,7 +206,7 @@ def private_index(request, year):
|
|||
totals[state['slug']] = Feedback.objects.filter(nomcom=nomcom, type='questio').count()
|
||||
else:
|
||||
totals[state['slug']] = all_nominee_positions.filter(state=state['slug']).count()
|
||||
totals['comments'] = Feedback.objects.filter(nomcom=nomcom, type='comment').count()
|
||||
totals['comments'] = Feedback.objects.filter(nomcom=nomcom, type='comment', positions__isnull=False).count()
|
||||
totals['open'] = nomcom.position_set.filter(is_open=True).count()
|
||||
totals['accepting_nominations'] = nomcom.position_set.filter(accepting_nominations=True).count()
|
||||
totals['accepting_feedback'] = nomcom.position_set.filter(accepting_feedback=True).count()
|
||||
|
|
Loading…
Reference in a new issue