diff --git a/competition/models.py b/competition/models.py index d6fc86a..e48e65f 100644 --- a/competition/models.py +++ b/competition/models.py @@ -403,8 +403,8 @@ class Meta: def __str__(self): return f'{self.series.semester.competition.name}-{self.series.semester.year}' \ - f'-{self.series.semester.season[0] - }S-S{self.series.order} - {self.order}. Ășloha' + f'-{self.series.semester.season[0]}S-S{self.series.order}'\ + f' - {self.order}. Ășloha' def get_stats(self): stats = {} diff --git a/competition/views.py b/competition/views.py index 41c0b9b..4356205 100644 --- a/competition/views.py +++ b/competition/views.py @@ -847,8 +847,8 @@ def download_publication(self, request, pk=None): publication = self.get_object() response = HttpResponse( publication.file, content_type=mime_type(publication.file)) - response['Content-Disposition'] = f'attachment; filename="{ - publication.name}"' + response['Content-Disposition'] = f'attachment; '\ + f'filename="{publication.name}"' return response @action(methods=['post'], detail=False, url_path='upload', permission_classes=[IsAdminUser])