From 723b34a87f00c312fc3d8ee9e7229ead7e936e2d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 29 Dec 2021 15:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0product=5F=20srm=20serializer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/srm/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/srm/serializers.py b/hb_server/apps/srm/serializers.py index 41543df..edea221 100644 --- a/hb_server/apps/srm/serializers.py +++ b/hb_server/apps/srm/serializers.py @@ -7,7 +7,7 @@ class SubplanGanttSerializer(serializers.ModelSerializer): product_ = MaterialSimpleSerializer(source='product', read_only=True) class Meta: model = SubProductionPlan - fields = ['id', 'number', 'start_date', 'end_date', 'count', 'count_real', 'count_ok', 'start_date_real', 'end_date_real', 'process_'] + fields = ['id', 'number', 'start_date', 'end_date', 'count', 'count_real', 'count_ok', 'start_date_real', 'end_date_real', 'process_', 'product_'] class PlanGanttSerializer(serializers.ModelSerializer): children = serializers.SerializerMethodField()