fix: COMMENT rules fix
This commit is contained in:
@@ -12,9 +12,9 @@ from core.apps.companies.serializers.accounts import (
|
||||
DestroyCompanyAccountSerializer,
|
||||
)
|
||||
|
||||
######################################################################
|
||||
# Crud
|
||||
######################################################################
|
||||
###################################################################################
|
||||
# @view-set | POST, GET, UPDATE, DELETE, PATCH, PUT -
|
||||
###################################################################################
|
||||
@extend_schema(tags=["CompanyAccount"])
|
||||
class CompanyAccountCrudViewSet(BaseViewSetMixin, ModelViewSet):
|
||||
queryset = CompanyAccountModel.objects.all()
|
||||
|
||||
@@ -3,7 +3,6 @@ from django.contrib.auth import get_user_model
|
||||
|
||||
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.viewsets import ModelViewSet # type: ignore
|
||||
from rest_framework.generics import GenericAPIView # type: ignore
|
||||
@@ -26,12 +25,10 @@ from core.apps.companies.serializers import (
|
||||
RetrieveCompanyFolderSerializer,
|
||||
CreateFolderForCompanySerializer,
|
||||
)
|
||||
|
||||
from core.apps.contracts.serializers import (
|
||||
RetrieveContractSerializer,
|
||||
BaseContractSerializer,
|
||||
)
|
||||
|
||||
from core.apps.contracts.models import ContractModel
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +61,8 @@ List only the HTTP methods the view explicitly supports:
|
||||
* `OPTIONS`
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user