shaxob #97

Merged
xoliqberdiyev merged 10 commits from shaxob into main 2026-04-24 11:40:32 +00:00
33 changed files with 210 additions and 457 deletions
Showing only changes of commit 84cc11fe2a - Show all commits

View File

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

View File

@@ -76,6 +76,10 @@ urlpatterns = [
),
path("evaluation-request/<int:pk>/change-status/", EvaluationStatusChange.as_view(),
name="evaluation-change-status"),
path("archived-evaluvation/", GetArchivedEvaluationListAPIView.as_view(),
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"])
class GetArchivedEvaluationListAPIView(ListAPIView):
authentication_classes = []
permission_classes = [IsAuthenticated]
def get_queryset(self):
@@ -168,7 +167,6 @@ class GetArchivedEvaluationListAPIView(ListAPIView):
@extend_schema(tags=["AutoEvaluation"])
class ArchivedEvaluation(APIView):
authentication_classes = []
permission_classes = [IsAuthenticated]
def post(self, request, pk):