From 5649decd7736c9585b60aca3e8dae2bd84ab18f2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 25 Oct 2023 13:46:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E4=BA=A4=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=97=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/pm/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pm/views.py b/apps/pm/views.py index f5bdc311..5214b1cb 100644 --- a/apps/pm/views.py +++ b/apps/pm/views.py @@ -137,7 +137,7 @@ class MtaskViewSet(CustomModelViewSet): @action(methods=['post'], detail=False, perms_map={'post': 'mtask.submit'}, serializer_class=PkSerializer) @transaction.atomic - def submit(self, request): + def submit(self, request, *args, **kwargs): """提交任务(根据任务ID) 提交任务后不可更新日志 @@ -150,7 +150,7 @@ class MtaskViewSet(CustomModelViewSet): @action(methods=['post'], detail=True, perms_map={'post': 'mtask.submit'}, serializer_class=Serializer) @transaction.atomic - def submit_related_same_day(self, request): + def submit_related_same_day(self, request, *args, **kwargs): """提交同一天该部门下大任务的所有兄弟小任务 提交同一天的该部门下大任务的所有兄弟小任务