fix: COMMENT rules fix

This commit is contained in:
2025-08-07 09:35:12 +05:00
parent 509b458760
commit d46506cc32
3 changed files with 5 additions and 7 deletions

View File

@@ -12,9 +12,9 @@ from core.apps.companies.serializers.accounts import (
DestroyCompanyAccountSerializer, DestroyCompanyAccountSerializer,
) )
###################################################################### ###################################################################################
# Crud # @view-set | POST, GET, UPDATE, DELETE, PATCH, PUT -
###################################################################### ###################################################################################
@extend_schema(tags=["CompanyAccount"]) @extend_schema(tags=["CompanyAccount"])
class CompanyAccountCrudViewSet(BaseViewSetMixin, ModelViewSet): class CompanyAccountCrudViewSet(BaseViewSetMixin, ModelViewSet):
queryset = CompanyAccountModel.objects.all() queryset = CompanyAccountModel.objects.all()

View File

@@ -3,7 +3,6 @@ from django.contrib.auth import get_user_model
from drf_spectacular.utils import extend_schema from drf_spectacular.utils import extend_schema
from rest_framework.decorators import action # type: ignore
from rest_framework.permissions import AllowAny, IsAdminUser # type: ignore from rest_framework.permissions import AllowAny, IsAdminUser # type: ignore
from rest_framework.viewsets import ModelViewSet # type: ignore from rest_framework.viewsets import ModelViewSet # type: ignore
from rest_framework.generics import GenericAPIView # type: ignore from rest_framework.generics import GenericAPIView # type: ignore
@@ -26,12 +25,10 @@ from core.apps.companies.serializers import (
RetrieveCompanyFolderSerializer, RetrieveCompanyFolderSerializer,
CreateFolderForCompanySerializer, CreateFolderForCompanySerializer,
) )
from core.apps.contracts.serializers import ( from core.apps.contracts.serializers import (
RetrieveContractSerializer, RetrieveContractSerializer,
BaseContractSerializer, BaseContractSerializer,
) )
from core.apps.contracts.models import ContractModel from core.apps.contracts.models import ContractModel

View File

@@ -61,7 +61,8 @@ List only the HTTP methods the view explicitly supports:
* `OPTIONS` * `OPTIONS`
Order doesn't matter, but use **uppercase** for consistency. Order doesn't matter, but use **uppercase** for consistency.
Write `ALL` instead of counting one by one, if your endpoint handles
all of the supported methods.
--- ---
### 📍 Endpoint Path ### 📍 Endpoint Path