diff --git a/competition/views.py b/competition/views.py index a5aa2371..67faa286 100644 --- a/competition/views.py +++ b/competition/views.py @@ -488,8 +488,8 @@ def remove_vote(self, request, pk=None): self.get_object().set_vote(Vote.NONE) return Response('Hlas Odobraný.', status=status.HTTP_200_OK) - @action(methods=['get'], detail=True, url_path='download-solution') - def download_solution(self, request, pk=None): + @action(methods=['get'], detail=True, url_path='file-solution') + def file_solution(self, request, pk=None): """Stiahne riešenie""" solution = self.get_object() file = solution.solution @@ -500,8 +500,8 @@ def download_solution(self, request, pk=None): file, content_type='application/pdf', ) - @action(methods=['get'], detail=True, url_path='download-corrected') - def download_corrected(self, request, pk=None): + @action(methods=['get'], detail=True, url_path='file-corrected') + def file_corrected(self, request, pk=None): """Stiahne opravenú verziu riešenia""" solution = self.get_object() file = solution.corrected_solution