diff --git a/core/apps/contracts/urls.py b/core/apps/contracts/urls.py index d14182e..76b1067 100644 --- a/core/apps/contracts/urls.py +++ b/core/apps/contracts/urls.py @@ -55,7 +55,7 @@ urlpatterns: list[object] = [ name="contract-owners-api-view" ), path( - r"/contract-owners//files/", + r"/contracts//files", views.ContractAttachedFileApiView.as_view(), name="contract-attached-files-api-view" ) diff --git a/core/apps/contracts/views/contracts.py b/core/apps/contracts/views/contracts.py index 4ce0fc7..f64a561 100644 --- a/core/apps/contracts/views/contracts.py +++ b/core/apps/contracts/views/contracts.py @@ -1,9 +1,8 @@ import uuid from drf_spectacular.utils import extend_schema -from rest_framework.permissions import AllowAny, IsAdminUser, IsAuthenticated # type: ignore +from rest_framework.permissions import AllowAny, IsAdminUser # type: ignore from rest_framework.viewsets import ModelViewSet # type: ignore -from rest_framework.views import APIView # type: ignore from rest_framework.generics import GenericAPIView # type: ignore from core.utils.views import BaseApiViewMixin diff --git a/core/apps/contracts/views/owners.py b/core/apps/contracts/views/owners.py index 73a1f4e..c2e6421 100644 --- a/core/apps/contracts/views/owners.py +++ b/core/apps/contracts/views/owners.py @@ -63,9 +63,7 @@ class ContractOwnerAttachedFileApiView(BaseApiViewMixin, GenericAPIView): # typ permission_classes = [AllowAny] queryset = ContractOwnerModel.objects.all() - method_permission_classes = { - "delete": [AllowAny] - } + method_permission_classes = {"delete": [AllowAny]} method_serializer_class = {} @extend_schema(