From 707ed88b4ac7c5522848159b32545383f305432d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 30 Mar 2022 13:51:06 +0800 Subject: [PATCH] =?UTF-8?q?wproduct=20detail=E5=A2=9E=E5=8A=A0create=5Fby?= =?UTF-8?q?=20update=5Fby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/serializers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hb_server/apps/wpm/serializers.py b/hb_server/apps/wpm/serializers.py index 37c5954..2b143b1 100644 --- a/hb_server/apps/wpm/serializers.py +++ b/hb_server/apps/wpm/serializers.py @@ -244,6 +244,8 @@ class WProductDetailSerializer(serializers.ModelSerializer): children = serializers.SerializerMethodField() to_order_ = OrderSimpleSerializer(source='to_order', read_only=True) order_ = OrderSimpleSerializer(source='subproduction_plan__production_plan__order', read_only=True) + create_by_ = UserSimpleSerializer(source='create_by', read_only=True) + update_by_ = UserSimpleSerializer(source='update_by', read_only=True) class Meta: model = WProduct fields = '__all__'