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):