This commit is contained in:
Shaxobff
2026-04-24 16:21:19 +05:00
parent deebae384c
commit 84cc11fe2a
3 changed files with 5 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ class AdminCreateAPIView(APIView):
@extend_schema(tags=['User'], @extend_schema(tags=['User'],
responses={200: UserSerializer}, responses={200: UserSerializer},
request=UserCreateSerializer) request=UserCreateSerializer)
class AdminUpdateAPIView(APIView): class AdminUpdateAPIView(APIView):
permission_classes = [IsAuthenticated] permission_classes = [IsAuthenticated]

View File

@@ -76,6 +76,10 @@ urlpatterns = [
), ),
path("evaluation-request/<int:pk>/change-status/", EvaluationStatusChange.as_view(), path("evaluation-request/<int:pk>/change-status/", EvaluationStatusChange.as_view(),
name="evaluation-change-status"), name="evaluation-change-status"),
path("archived-evaluvation/", GetArchivedEvaluationListAPIView.as_view(), path("archived-evaluvation/", GetArchivedEvaluationListAPIView.as_view(),
name="archived-evaluation"), name="archived-evaluation"),
path("auto-evaluvation-change-status/<int:pk>", GetArchivedEvaluationListAPIView.as_view(),
name="archived-evaluation"),
] ]

View File

@@ -159,7 +159,6 @@ class AutoEvaluationListAppraisersView(GenericAPIView):
@extend_schema(tags=["AutoEvaluation"]) @extend_schema(tags=["AutoEvaluation"])
class GetArchivedEvaluationListAPIView(ListAPIView): class GetArchivedEvaluationListAPIView(ListAPIView):
authentication_classes = []
permission_classes = [IsAuthenticated] permission_classes = [IsAuthenticated]
def get_queryset(self): def get_queryset(self):
@@ -168,7 +167,6 @@ class GetArchivedEvaluationListAPIView(ListAPIView):
@extend_schema(tags=["AutoEvaluation"]) @extend_schema(tags=["AutoEvaluation"])
class ArchivedEvaluation(APIView): class ArchivedEvaluation(APIView):
authentication_classes = []
permission_classes = [IsAuthenticated] permission_classes = [IsAuthenticated]
def post(self, request, pk): def post(self, request, pk):