feat: 增加删除证书 minx
This commit is contained in:
parent
d3a09b272b
commit
393bbadca9
|
@ -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):
|
||||||
"""
|
"""
|
||||||
出征记录:列表
|
出征记录:列表
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue