From 71dbd6c5721c0586e6b0917fa1e7a28a0e4b03b2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Jul 2024 11:31:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20handover=20=E6=B7=BB=E5=8A=A0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 385fb911..b6888e14 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -442,6 +442,8 @@ class HandoverSerializer(CustomModelSerializer): source='recive_user.name', read_only=True) recive_dept_name = serializers.CharField( source='recive_dept', read_only=True) + send_mgroup_name = serializers.CharField(source='send_mgroup.name', read_only=True) + recive_mgroup_name = serializers.CharField(source='recive_mgroup.name', read_only=True) material_ = MaterialSimpleSerializer(source='material', read_only=True) material_name = serializers.StringRelatedField( source='material', read_only=True)