|
|
|
@ -654,6 +654,9 @@ class ScrutinResults(AdminMixin, CSVExportMixin, detail.DetailView):
@@ -654,6 +654,9 @@ class ScrutinResults(AdminMixin, CSVExportMixin, detail.DetailView):
|
|
|
|
|
context['can_split_by'] = self.can_split_by |
|
|
|
|
context['split_by'] = self.verbose_split_by |
|
|
|
|
context['results'] = self.object.get_results(context['split_by']) |
|
|
|
|
context['has_results'] = any( |
|
|
|
|
[p['participation'] for _, _, p in context['results']] |
|
|
|
|
) |
|
|
|
|
return context |
|
|
|
|
|
|
|
|
|
def dispatch(self, request, *args, **kwargs): |
|
|
|
|