feat: 增加删除证书 minx

This commit is contained in:
zty 2025-03-26 10:00:14 +08:00
parent d3a09b272b
commit 393bbadca9
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ from openpyxl import Workbook, load_workbook
from rest_framework import status from rest_framework import status
from rest_framework.decorators import action, authentication_classes, permission_classes from rest_framework.decorators import action, authentication_classes, permission_classes
from rest_framework.filters import OrderingFilter, SearchFilter 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.permissions import IsAuthenticated
from rest_framework.response import Response from rest_framework.response import Response
from rest_framework.views import APIView 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} return {'year':year, 'month':month, 'day':day, 'sex':sex}
from examtest.exports import exportw_test from examtest.exports import exportw_test
class CandidateViewSet(RetrieveModelMixin, ListModelMixin, CreateModelMixin, UpdateModelMixin, GenericViewSet): class CandidateViewSet(RetrieveModelMixin, ListModelMixin, CreateModelMixin, DestroyModelMixin, UpdateModelMixin, GenericViewSet):
""" """
出征记录:列表 出征记录:列表
""" """