fix: 修复命令列表过滤字段文案`会话ID`

pull/5295/head
Bai 4 years ago committed by Jiangjie.Bai
parent ed8d72c06b
commit 0e4d778335

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: JumpServer 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-17 14:38+0800\n"
"POT-Creation-Date: 2020-12-17 18:22+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\n"
@ -2731,7 +2731,6 @@ msgid "Output"
msgstr "输出"
#: terminal/backends/command/models.py:23
#: terminal/backends/command/serializers.py:17
msgid "Session"
msgstr "会话"
@ -2740,6 +2739,10 @@ msgstr "会话"
msgid "Risk level"
msgstr "风险等级"
#: terminal/backends/command/serializers.py:17
msgid "Session ID"
msgstr "会话ID"
#: terminal/backends/command/serializers.py:19
msgid "Risk level for display"
msgstr "风险等级(显示名称)"

@ -14,7 +14,7 @@ class SessionCommandSerializer(serializers.Serializer):
system_user = serializers.CharField(max_length=64, label=_("System user"))
input = serializers.CharField(max_length=128, label=_("Command"))
output = serializers.CharField(max_length=1024, allow_blank=True, label=_("Output"))
session = serializers.CharField(max_length=36, label=_("Session"))
session = serializers.CharField(max_length=36, label=_("Session ID"))
risk_level = serializers.ChoiceField(required=False, label=_("Risk level"), choices=AbstractSessionCommand.RISK_LEVEL_CHOICES)
risk_level_display = serializers.SerializerMethodField(label=_('Risk level for display'))
org_id = serializers.CharField(max_length=36, required=False, default='', allow_null=True, allow_blank=True)

Loading…
Cancel
Save