diff --git a/memopol/views/representative_list.py b/memopol/views/representative_list.py index 0e0b373c481750392f2c834bd2d9f3f1f2325bd7..be0fc0bece5f4c0be993537800afcd6711d1dea3 100644 --- a/memopol/views/representative_list.py +++ b/memopol/views/representative_list.py @@ -18,7 +18,7 @@ class RepresentativeList(CSVDownloadMixin, GridListMixin, PaginationMixin, RepresentativeViewMixin, ActiveLegislatureMixin, generic.ListView): - csv_name = 'meps.csv' + csv_name = 'representatives' queryset = Representative.objects.select_related('score') def get_context_data(self, **kwargs): @@ -75,7 +75,7 @@ class RepresentativeList(CSVDownloadMixin, GridListMixin, PaginationMixin, return qs def get_csv_results(self, context, **kwargs): - qs = super(RepresentativeList, self).get_queryset() + qs = self.get_queryset() qs = qs.prefetch_related('email_set') return [self.add_representative_country_and_main_mandate(r) for r in qs]