From bc44d0335a4a0e773155246e62da12acdaf97049 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 9 Jan 2025 09:03:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mlogbin=E5=88=A0=E9=99=A4=E6=97=B6?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=88=A0=E9=99=A4=E5=AD=90=E9=9B=86ftest?= =?UTF-8?q?=E8=AE=B0=E5=BD=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index e37f050f..2b897d69 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -486,8 +486,8 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust qs = Mlogb.objects.filter(**query_dict) # 需要删除子集ftest记录 ftestIds = Mlogbw.objects.filter(mlogb__in=qs).values_list("ftest__id", flat=True) - Ftest.objects.filter(id__in=ftestIds).delete() Mlogb.objects.filter(**query_dict).delete() + Ftest.objects.filter(id__in=ftestIds).delete() instance.delete() @transaction.atomic