From 509fdb3656d38aa132c106f8bc7e6836b98c6049 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Nov 2025 11:24:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20material=20get=5Fqueryset=E5=BF=98?= =?UTF-8?q?=E8=AE=B0return=20qs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mtm/views.py b/apps/mtm/views.py index ec7c93e7..e958e01b 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -62,8 +62,8 @@ class MaterialViewSet(CustomModelViewSet): output_field=DecimalField() ) ) - - + return qs + def perform_destroy(self, instance): from apps.inm.models import MaterialBatch if MaterialBatch.objects.filter(material=instance).exists():