From 47dc3a4773234a525878dcc34c333363b6a60a5f Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 20 Sep 2024 16:29:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E8=BE=93=E5=85=A5=E8=B6=85=E9=95=BF?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dataset/serializers/problem_serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dataset/serializers/problem_serializers.py b/apps/dataset/serializers/problem_serializers.py index 65fb44d61f..14e3bced83 100644 --- a/apps/dataset/serializers/problem_serializers.py +++ b/apps/dataset/serializers/problem_serializers.py @@ -55,6 +55,7 @@ class Create(serializers.Serializer): dataset_id = serializers.UUIDField(required=True, error_messages=ErrMessage.uuid("知识库id")) problem_list = serializers.ListField(required=True, error_messages=ErrMessage.list("问题列表"), child=serializers.CharField(required=True, + max_length=255, error_messages=ErrMessage.char("问题"))) def batch(self, with_valid=True):