From 6bb6a2d2d77d5e3633a7c277a219406a3a758164 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 16 May 2024 10:50:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mpointstat=20correct=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enm/views.py b/apps/enm/views.py index 79e77c71..acedbb40 100644 --- a/apps/enm/views.py +++ b/apps/enm/views.py @@ -118,7 +118,7 @@ class MpointStatViewSet(BulkCreateModelMixin, BulkDestroyModelMixin, CustomListM instance.delete() cal_mpointstat_manual.delay(mpoint.id, sflog.id, mgroup.id, None, None, None, None, year_s, month_s, day_s, next_cal=1) - @action(methods=["post"], detail=False, perms_map={"post": "mpointstat.correct"}, serializer_class=MpointStatCorrectSerializer) + @action(methods=["post"], detail=True, perms_map={"post": "mpointstat.correct"}, serializer_class=MpointStatCorrectSerializer) def correct(self, request, *args, **kwargs): """修正测点统计记录及统计值