fix: 修复authbook信号监听;添加翻译文件.mo (#6882)

Co-authored-by: Michael Bai <baijiangjie@gmail.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
pull/6883/head
fit2bot 2021-09-16 10:36:24 +08:00 committed by GitHub
parent 0f7c8c2570
commit 2030cbd19d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
from django.dispatch import receiver from django.dispatch import receiver
from django.apps import apps from django.apps import apps
from simple_history.signals import pre_create_historical_record from simple_history.signals import pre_create_historical_record
from django.db.models.signals import post_save, pre_save, post_delete from django.db.models.signals import post_save, pre_save, pre_delete
from common.utils import get_logger from common.utils import get_logger
from ..models import AuthBook, SystemUser from ..models import AuthBook, SystemUser
@ -28,7 +28,7 @@ def pre_create_historical_record_callback(sender, history_instance=None, **kwarg
setattr(history_instance, attr, system_user_attr_value) setattr(history_instance, attr, system_user_attr_value)
@receiver(post_delete, sender=AuthBook) @receiver(pre_delete, sender=AuthBook)
def on_authbook_post_delete(sender, instance, **kwargs): def on_authbook_post_delete(sender, instance, **kwargs):
instance.remove_asset_admin_user_if_need() instance.remove_asset_admin_user_if_need()

Binary file not shown.

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: JumpServer 0.3.3\n" "Project-Id-Version: JumpServer 0.3.3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-15 20:51+0800\n" "POT-Creation-Date: 2021-09-16 10:31+0800\n"
"PO-Revision-Date: 2021-05-20 10:54+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n"
"Last-Translator: ibuler <ibuler@qq.com>\n" "Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\n" "Language-Team: JumpServer team<ibuler@qq.com>\n"
@ -5678,7 +5678,7 @@ msgstr "* 新密码不能是最近 {} 次的密码"
msgid "Reset password success, return to login page" msgid "Reset password success, return to login page"
msgstr "重置密码成功,返回到登录页面" msgstr "重置密码成功,返回到登录页面"
#: xpack/plugins/change_auth_plan/api/app.py:112 #: xpack/plugins/change_auth_plan/api/app.py:113
#: xpack/plugins/change_auth_plan/api/asset.py:100 #: xpack/plugins/change_auth_plan/api/asset.py:100
msgid "The parameter 'action' must be [{}]" msgid "The parameter 'action' must be [{}]"
msgstr "参数 'action' 必须是 [{}]" msgstr "参数 'action' 必须是 [{}]"
@ -6126,16 +6126,16 @@ msgstr "租户 ID"
msgid "Subscription ID" msgid "Subscription ID"
msgstr "订阅 ID" msgstr "订阅 ID"
#: xpack/plugins/cloud/serializers/account_attrs.py:81 #: xpack/plugins/cloud/serializers/account_attrs.py:87
#: xpack/plugins/cloud/serializers/account_attrs.py:86 #: xpack/plugins/cloud/serializers/account_attrs.py:92
msgid "API Endpoint" msgid "API Endpoint"
msgstr "API 端点" msgstr "API 端点"
#: xpack/plugins/cloud/serializers/account_attrs.py:92 #: xpack/plugins/cloud/serializers/account_attrs.py:98
msgid "Service account key" msgid "Service account key"
msgstr "账户密钥" msgstr "账户密钥"
#: xpack/plugins/cloud/serializers/account_attrs.py:93 #: xpack/plugins/cloud/serializers/account_attrs.py:99
msgid "The file is in JSON format" msgid "The file is in JSON format"
msgstr "JSON 格式的文件" msgstr "JSON 格式的文件"