From 94286caec4c1a459d2d5fff8f3ad3a627fecb74e Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 19 Apr 2024 17:08:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=BD=E4=BB=A4=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/serializers/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/serializers/command.py b/apps/terminal/serializers/command.py index 0c2e9c949..1c1cb6f11 100644 --- a/apps/terminal/serializers/command.py +++ b/apps/terminal/serializers/command.py @@ -70,7 +70,7 @@ class SessionCommandSerializerMixin(serializers.Serializer): id = serializers.UUIDField(read_only=True) # 限制 64 字符,不能直接迁移成 128 字符,命令表数据量会比较大 account = serializers.CharField(label=_("Account ")) - output = serializers.CharField(max_length=2048, allow_blank=True, label=_("Output")) + output = serializers.CharField(allow_blank=True, label=_("Output")) timestamp = serializers.IntegerField(label=_('Timestamp')) timestamp_display = serializers.DateTimeField(read_only=True, label=_('Datetime')) remote_addr = serializers.CharField(read_only=True, label=_('Remote Address'))