diff --git a/competition/views.py b/competition/views.py index e4e35c55..9420ba66 100644 --- a/competition/views.py +++ b/competition/views.py @@ -704,8 +704,7 @@ def participants_export(self, request, pk=None): header = ProfileExportSerializer.Meta.fields writer = csv.DictWriter(response, fieldnames=header) writer.writeheader() - for row in serializer.data: - writer.writerow(row) + writer.writerows(serializer.data) return response def post(self, request, format_post):