From b8aaa7d24905fe20f51d847ed78834579e22fa1b Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Tue, 18 Jan 2022 14:21:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=99=A8=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/system_user.py | 2 +- apps/locale/zh/LC_MESSAGES/django.po | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/assets/serializers/system_user.py b/apps/assets/serializers/system_user.py index 4c01d46bb..850870762 100644 --- a/apps/assets/serializers/system_user.py +++ b/apps/assets/serializers/system_user.py @@ -51,7 +51,7 @@ class SystemUserSerializer(AuthSerializerMixin, BulkOrgResourceModelSerializer): 'trim_whitespace': False, "validators": [validate_password_contains_left_double_curly_bracket] }, - 'cmd_filters': {"required": False}, + 'cmd_filters': {"required": False, 'label': _('Command filter')}, 'public_key': {"write_only": True}, 'private_key': {"write_only": True}, 'token': {"write_only": True}, diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 25f1ec308..e4e30ee01 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: JumpServer 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-18 12:23+0800\n" +"POT-Creation-Date: 2022-01-18 14:20+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -781,7 +781,7 @@ msgstr "默认Cluster" msgid "User group" msgstr "用户组" -#: assets/models/cmd_filter.py:56 +#: assets/models/cmd_filter.py:56 assets/serializers/system_user.py:54 msgid "Command filter" msgstr "命令过滤器" @@ -6343,4 +6343,4 @@ msgstr "旗舰版" #: xpack/plugins/license/models.py:77 msgid "Community edition" -msgstr "社区版" \ No newline at end of file +msgstr "社区版"