Skip to content

Commit

Permalink
Pridaný encoding pri exporte userov (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe authored Nov 22, 2024
1 parent 593b11c commit 20f059d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion competition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def participants(self, request, pk=None):
def participants_export(self, request, pk=None):
"""Vráti všetkých užívateľov zapojených do semestra"""
serializer = self.__get_participants()
response = HttpResponse(content_type='text/csv')
response = HttpResponse(content_type='text/csv; charset=utf-8')
response['Content-Disposition'] = 'attachment; filename="export.csv"'
header = ProfileExportSerializer.Meta.fields
writer = csv.DictWriter(response, fieldnames=header)
Expand Down

0 comments on commit 20f059d

Please sign in to comment.