Browse Source

fix: 命令输出取消长度限制

pull/13092/head
feng 7 months ago committed by 老广
parent
commit
94286caec4
  1. 2
      apps/terminal/serializers/command.py

2
apps/terminal/serializers/command.py

@ -70,7 +70,7 @@ class SessionCommandSerializerMixin(serializers.Serializer):
id = serializers.UUIDField(read_only=True) id = serializers.UUIDField(read_only=True)
# 限制 64 字符,不能直接迁移成 128 字符,命令表数据量会比较大 # 限制 64 字符,不能直接迁移成 128 字符,命令表数据量会比较大
account = serializers.CharField(label=_("Account ")) 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 = serializers.IntegerField(label=_('Timestamp'))
timestamp_display = serializers.DateTimeField(read_only=True, label=_('Datetime')) timestamp_display = serializers.DateTimeField(read_only=True, label=_('Datetime'))
remote_addr = serializers.CharField(read_only=True, label=_('Remote Address')) remote_addr = serializers.CharField(read_only=True, label=_('Remote Address'))

Loading…
Cancel
Save