From c7c35e7817abaccdb33377cedbef44e9e6aa1a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Sat, 23 Nov 2024 21:03:28 +0100 Subject: [PATCH] Fixing formatting issues --- competition/models.py | 4 ++-- competition/views.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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])