From 77e92062fbde99e969092e613dff3f7bb2f01fb9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 4 Sep 2023 16:59:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20event=20=E6=94=AF=E6=8C=81=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ecm/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ecm/views.py b/apps/ecm/views.py index 0ff5288c..76e5f947 100644 --- a/apps/ecm/views.py +++ b/apps/ecm/views.py @@ -26,6 +26,7 @@ from apps.ecm.service import update_remind_read from apps.utils.viewsets import CustomGenericViewSet, CustomModelViewSet from apps.utils.export import export_excel_img from apps.ecm.tasks import monitor_check +from apps.utils.mixins import BulkDestroyModelMixin obj_cate_dict = {'people': '人员', 'opl': '作业', 'other': '其他'} mark_dict = {10: '正常', 20: '误报'} @@ -89,7 +90,7 @@ class NotifySettingViewSet(CustomModelViewSet): ordering = ['sort', 'create_time'] -class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, CustomGenericViewSet): +class EventViewSet(ListModelMixin, RetrieveModelMixin, BulkDestroyModelMixin, CustomGenericViewSet): perms_map = {'get': '*', 'delete': 'event.delete'} queryset = Event.objects.all() serializer_class = EventSerializer