UPDATE
This commit is contained in:
@@ -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]
|
||||||
|
|
||||||
|
|||||||
@@ -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"),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user