Skip to content

Commit

Permalink
fix: 修复创建问题,输入超长字符报错
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Sep 20, 2024
1 parent d975ee6 commit 47dc3a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/dataset/serializers/problem_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 47dc3a4

Please sign in to comment.