From ccac1aea87167f14b60576a86de88388c2687d58 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 7 Jan 2025 13:23:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A6=82=E6=9E=9C=E6=98=AF=E4=B8=BB?= =?UTF-8?q?=E8=A6=81=E8=BE=93=E5=85=A5=E7=89=A9=E6=96=99=E4=B8=94=E6=98=AF?= =?UTF-8?q?=E4=B8=BB=E6=89=B9=E6=AC=A1=EF=BC=8C=E6=89=8D=E9=9C=80=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=BE=93=E5=87=BA2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index b4a894fe..adf6f930 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -524,7 +524,8 @@ class MlogChangeSerializer(CustomModelSerializer): class MlogbInSerializer(CustomModelSerializer): class Meta: model = Mlogb - fields = ['id', 'mlog', 'mtask', 'wm_in', 'count_use', 'count_pn_jgqbl', 'count_break', 'note'] + fields = ['id', 'mlog', 'mtask', 'wm_in', 'count_use', 'count_pn_jgqbl', + 'count_break', 'note', "is_main_batchin"] extra_kwargs = {'count_use': {'required': True}, 'mtask': {'required': True}, 'wm_in': {'required': True}} def validate(self, attrs):