From 78fd0c97214a0ae96e84400197853367aa382292 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 18 Jan 2024 10:55:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E5=BF=97=E6=92=A4=E5=9B=9E?= =?UTF-8?q?=E5=90=8E=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index c1412542..941aa779 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -197,6 +197,9 @@ class MlogViewSet(CustomModelViewSet): now = timezone.now() mlog_revert(ins, user, now) if ins.mtask: + mtask = ins.mtask + mtask.state = Mtask.MTASK_ASSGINED + mtask.save() update_mtask(ins.mtask) create_auditlog('revert', ins, {}, {}, now, user, request.data.get('change_reason', ''))