fix: 统一成模板

pull/12934/head
wangruidong 2024-04-01 17:30:42 +08:00 committed by Bryan
parent 39d3e5477c
commit afa1ba4f6b
4 changed files with 12 additions and 11 deletions

View File

@ -29,7 +29,8 @@ def template_sync_related_accounts(template_id, user_id=None):
name = template.name
username = template.username
secret_type = template.secret_type
print(f'\033[32m>>> 开始同步模版名称、用户名、密钥类型到相关联的账号 ({datetime.now().strftime("%Y-%m-%d %H:%M:%S")})')
print(
f'\033[32m>>> 开始同步模板名称、用户名、密钥类型到相关联的账号 ({datetime.now().strftime("%Y-%m-%d %H:%M:%S")})')
with tmp_to_org(org_id):
for account in accounts:
account.name = name

View File

@ -17,7 +17,7 @@ logger = get_logger(__file__)
class BaseFileRenderer(BaseRenderer):
# 渲染模版标识, 导入、导出、更新模版: ['import', 'update', 'export']
# 渲染模板标识, 导入、导出、更新模板: ['import', 'update', 'export']
template = 'export'
serializer = None

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4d7b83fa3e1145a07ceb1c759f0c6f6a1e09dc885236fd35c6b9f31f77b94c0
oid sha256:4956582f1be19278e5f004838a84a20565ef17245c07d3ce3be321692de7a5f8
size 143784

View File

@ -671,20 +671,20 @@ msgstr "账号推送参数"
#: accounts/models/template.py:26 xpack/plugins/cloud/models.py:329
msgid "Account template"
msgstr "账号模"
msgstr "账号模"
#: accounts/models/template.py:31
msgid "Can view asset account template secret"
msgstr "可以查看资产账号模密码"
msgstr "可以查看资产账号模密码"
#: accounts/models/template.py:32
msgid "Can change asset account template secret"
msgstr "可以更改资产账号模密码"
msgstr "可以更改资产账号模密码"
# msgid "Can view asset account template secret"
# msgstr "可以查看资产账号模密码"
# msgstr "可以查看资产账号模密码"
# msgid "Can change asset account template secret"
# msgstr "可以更改资产账号模密码"
# msgstr "可以更改资产账号模密码"
#: accounts/models/virtual.py:13
msgid "Alias"
msgstr "别名"
@ -3887,7 +3887,7 @@ msgstr "短信服务商不支持:{}"
#: common/sdk/sms/endpoint.py:54
msgid "SMS verification code signature or template invalid"
msgstr "短信验证码签名或模无效"
msgstr "短信验证码签名或模无效"
#: common/sdk/sms/exceptions.py:8
msgid "The verification code has expired. Please resend it"
@ -6223,7 +6223,7 @@ msgstr "下载导入的模板或使用导出的csv格式"
#: templates/_csv_import_modal.html:13
msgid "Download the import template"
msgstr "下载导入模"
msgstr "下载导入模"
#: templates/_csv_import_modal.html:17 templates/_csv_update_modal.html:17
msgid "Select the CSV file to import"
@ -6239,7 +6239,7 @@ msgstr "下载更新的模板或使用导出的csv格式"
#: templates/_csv_update_modal.html:13
msgid "Download the update template"
msgstr "下载更新模"
msgstr "下载更新模"
#: templates/_header_bar.html:12
msgid "Help"