From 885d932fc8a97a473ea9545307f0fdb03a3d9137 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 3 Apr 2025 16:11:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=9A=E8=BF=87=E6=8C=87=E5=AE=9Amat?= =?UTF-8?q?=5Fin/mat=5Fout=E5=A4=8D=E5=88=B6=E5=B7=A5=E8=89=BA=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF=20bug1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mtm/views.py b/apps/mtm/views.py index 13a193fa..6e4183bf 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -244,7 +244,7 @@ class RoutePackViewSet(CustomModelViewSet): vdata = sr.validated_data user = request.user now = timezone.now() - new_name = vdata["name"] + new_name = vdata["new_name"] rp = RoutePack.objects.get(id=vdata["id"]) matin = Material.objects.get(id=vdata["material_in"]) matout = Material.objects.get(id=vdata["material_out"])