From 393bbadca9c31c33329a50ccb227b5e268a9dd66 Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 26 Mar 2025 10:00:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=20minx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_server/crm/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_server/crm/views.py b/test_server/crm/views.py index 2e46afb..1c07a88 100644 --- a/test_server/crm/views.py +++ b/test_server/crm/views.py @@ -11,7 +11,7 @@ from openpyxl import Workbook, load_workbook from rest_framework import status from rest_framework.decorators import action, authentication_classes, permission_classes from rest_framework.filters import OrderingFilter, SearchFilter -from rest_framework.mixins import CreateModelMixin, ListModelMixin, RetrieveModelMixin, UpdateModelMixin +from rest_framework.mixins import CreateModelMixin, ListModelMixin, RetrieveModelMixin, UpdateModelMixin, DestroyModelMixin from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView @@ -730,7 +730,7 @@ def get_msg_from_id(id_number): return {'year':year, 'month':month, 'day':day, 'sex':sex} from examtest.exports import exportw_test -class CandidateViewSet(RetrieveModelMixin, ListModelMixin, CreateModelMixin, UpdateModelMixin, GenericViewSet): +class CandidateViewSet(RetrieveModelMixin, ListModelMixin, CreateModelMixin, DestroyModelMixin, UpdateModelMixin, GenericViewSet): """ 出征记录:列表 """