perf: 打算压缩 migratons

This commit is contained in:
ibuler 2024-05-09 11:01:01 +08:00
parent 259204bfe2
commit a9068496d9
6 changed files with 27 additions and 25 deletions

View File

@ -12,7 +12,7 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.AlterModelOptions( migrations.AlterModelOptions(
name='domain', name='domain',
options={'verbose_name': 'Domain'}, options={'verbose_name': 'Zone'},
), ),
migrations.AlterModelOptions( migrations.AlterModelOptions(
name='gateway', name='gateway',

View File

@ -12,6 +12,6 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.AlterModelOptions( migrations.AlterModelOptions(
name='domain', name='domain',
options={'ordering': ('name',), 'verbose_name': 'Domain'}, options={'ordering': ('name',), 'verbose_name': 'Zone'},
), ),
] ]

View File

@ -19,7 +19,7 @@ class Domain(LabeledMixin, JMSOrgBaseModel):
name = models.CharField(max_length=128, verbose_name=_('Name')) name = models.CharField(max_length=128, verbose_name=_('Name'))
class Meta: class Meta:
verbose_name = _("Domain") verbose_name = _("Zone")
unique_together = [('org_id', 'name')] unique_together = [('org_id', 'name')]
ordering = ('name',) ordering = ('name',)

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:ceeb2860215e86f3088de6dc00e035d941098718221b9359e2c2cce0b20ee6b1 oid sha256:feae54a2fae498af7c9a39babc64e704fc45a049600c2eef9f32cf126ca5bc45
size 2579 size 2595

View File

@ -2632,7 +2632,7 @@ msgstr ""
#: settings/serializers/auth/feishu.py:13 users/models/user.py:750 #: settings/serializers/auth/feishu.py:13 users/models/user.py:750
#: users/models/user.py:918 #: users/models/user.py:918
msgid "FeiShu" msgid "FeiShu"
msgstr "Lark" msgstr ""
#: audits/signal_handlers/login_log.py:39 authentication/views/login.py:95 #: audits/signal_handlers/login_log.py:39 authentication/views/login.py:95
#: authentication/views/slack.py:87 notifications/backends/__init__.py:15 #: authentication/views/slack.py:87 notifications/backends/__init__.py:15
@ -4521,7 +4521,7 @@ msgstr ""
#: orgs/serializers.py:15 #: orgs/serializers.py:15
msgid "Domains amount" msgid "Domains amount"
msgstr "" msgstr "Zones amount"
#: orgs/serializers.py:16 #: orgs/serializers.py:16
msgid "Gateways amount" msgid "Gateways amount"

View File

@ -67,7 +67,7 @@
"AdhocManage": "Command", "AdhocManage": "Command",
"AdhocUpdate": "Update the Command", "AdhocUpdate": "Update the Command",
"Advanced": "Advanced Settings", "Advanced": "Advanced Settings",
"AfterChange": "After Changes", "AfterChange": "After changes",
"AjaxError404": "404 Request Error", "AjaxError404": "404 Request Error",
"AlibabaCloud": "Alibaba Cloud", "AlibabaCloud": "Alibaba Cloud",
"Aliyun": "Alibaba Cloud", "Aliyun": "Alibaba Cloud",
@ -172,7 +172,7 @@
"BaiduCloud": "Baidu Cloud", "BaiduCloud": "Baidu Cloud",
"BasePort": "Listening Ports", "BasePort": "Listening Ports",
"Basic": "Basic", "Basic": "Basic",
"BasicInfo": "Basic", "BasicInfo": "Basic Information",
"BasicSetting": "Basic", "BasicSetting": "Basic",
"BatchClearErrorMsg": "Batch Clearing Failed:", "BatchClearErrorMsg": "Batch Clearing Failed:",
"BatchConsent": "Batch Approval", "BatchConsent": "Batch Approval",
@ -187,9 +187,10 @@
"BatchSyncErrorMsg": "Batch sync Failed", "BatchSyncErrorMsg": "Batch sync Failed",
"BatchTest": "Batch Test", "BatchTest": "Batch Test",
"BatchTransfer": "File Transfer", "BatchTransfer": "File Transfer",
"LoginConfirmUser": "Confirm by",
"BatchUpdate": "Batch edit", "BatchUpdate": "Batch edit",
"BatchUpdatePlatformHelpTxt": "The asset will be updated only if the original platform type is the same as the selected platform type. If the platform types before and after the update are different, it will not be updated.", "BatchUpdatePlatformHelpTxt": "The asset will be updated only if the original platform type is the same as the selected platform type. If the platform types before and after the update are different, it will not be updated.",
"BeforeChange": "Before Change", "BeforeChange": "Before change",
"Beian": "Record", "Beian": "Record",
"BelongAll": "Including at the same time", "BelongAll": "Including at the same time",
"BelongTo": "Any includes", "BelongTo": "Any includes",
@ -221,7 +222,7 @@
"AssetLoginACLHelpText": "When logging into assets, it can be audited based on the user's login IP and time segment to determine whether the assets can be logged into", "AssetLoginACLHelpText": "When logging into assets, it can be audited based on the user's login IP and time segment to determine whether the assets can be logged into",
"ConnectMethodACLHelpText": "Connect Methods can be filtered to control whether users can use a certain Connect Method to log in to the asset. According to your set rules, some Connect Methods can be allowed, while others can be prohibited.", "ConnectMethodACLHelpText": "Connect Methods can be filtered to control whether users can use a certain Connect Method to log in to the asset. According to your set rules, some Connect Methods can be allowed, while others can be prohibited.",
"UserLoginACLHelpText": "When logging in, it can be audited based on the user's login IP and time segment to determine whether the user can log in", "UserLoginACLHelpText": "When logging in, it can be audited based on the user's login IP and time segment to determine whether the user can log in",
"ChangeField": "Change Field", "ChangeField": "Change field",
"ChangeOrganization": "Change organization", "ChangeOrganization": "Change organization",
"ChangePassword": "Change Password", "ChangePassword": "Change Password",
"ChangeReceiver": "Change Recipient", "ChangeReceiver": "Change Recipient",
@ -417,6 +418,7 @@
"EmailTest": "Test Connection", "EmailTest": "Test Connection",
"Empty": "Empty", "Empty": "Empty",
"Enable": "Enable", "Enable": "Enable",
"OrgsAndRoles": "Org and roles",
"EnableKoKoSSHHelpText": "When switched on, connecting to the asset will display SSH Client pull-up method", "EnableKoKoSSHHelpText": "When switched on, connecting to the asset will display SSH Client pull-up method",
"Endpoint": "Service Endpoint", "Endpoint": "Service Endpoint",
"EndpointListHelpMessage": "The service endpoint is the address (port) for users to access the service. When users connect to assets, they choose service endpoints based on endpoint rules and asset labels, using them as access points to establish connections and achieve distributed connections to assets", "EndpointListHelpMessage": "The service endpoint is the address (port) for users to access the service. When users connect to assets, they choose service endpoints based on endpoint rules and asset labels, using them as access points to establish connections and achieve distributed connections to assets",
@ -810,8 +812,8 @@
"PrivateCloud": "Private Cloud", "PrivateCloud": "Private Cloud",
"PrivateKey": "Private Key", "PrivateKey": "Private Key",
"Privileged": "Privileged", "Privileged": "Privileged",
"PrivilegedFirst": "Privileged First", "PrivilegedFirst": "Privileged first",
"PrivilegedOnly": "Privileged Accounts Only", "PrivilegedOnly": "Privileged accounts only",
"PrivilegedTemplate": "Privileged", "PrivilegedTemplate": "Privileged",
"Product": "Product", "Product": "Product",
"Profile": "Profile", "Profile": "Profile",
@ -887,11 +889,11 @@
"RequiredAssetOrNode": "Please Select at Least One Asset or Node", "RequiredAssetOrNode": "Please Select at Least One Asset or Node",
"RequiredContent": "Please Input Command", "RequiredContent": "Please Input Command",
"RequiredEntryFile": "This file acts as the entry point for running and must be present", "RequiredEntryFile": "This file acts as the entry point for running and must be present",
"RequiredRunas": "Please Enter the Execution User", "RequiredRunas": "Please enter the execution user",
"RequiredSystemUserErrMsg": "Please Select Account", "RequiredSystemUserErrMsg": "Please select account",
"RequiredUploadFile": "Please upload the file!", "RequiredUploadFile": "Please upload the file!",
"Reset": "Reset", "Reset": "Reset",
"ResetAndDownloadSSHKey": "Reset and Download Key", "ResetAndDownloadSSHKey": "Reset and download key",
"ResetMFA": "Reset MFA", "ResetMFA": "Reset MFA",
"ResetMFAWarningMsg": "Are you sure you want to reset the user's MFA?", "ResetMFAWarningMsg": "Are you sure you want to reset the user's MFA?",
"ResetMFAdSuccessMsg": "MFA Reset Successful, User Can Reset MFA Again", "ResetMFAdSuccessMsg": "MFA Reset Successful, User Can Reset MFA Again",
@ -899,9 +901,9 @@
"ResetPasswordNextLogin": "Password must be changed during next log in", "ResetPasswordNextLogin": "Password must be changed during next log in",
"ResetPasswordSuccessMsg": "Reset Password Message Sent to User", "ResetPasswordSuccessMsg": "Reset Password Message Sent to User",
"ResetPasswordWarningMsg": "Are you sure you want to send the password reset email for the user", "ResetPasswordWarningMsg": "Are you sure you want to send the password reset email for the user",
"ResetPublicKeyAndDownload": "Reset and Download SSH Key", "ResetPublicKeyAndDownload": "Reset and download SSH key",
"ResetSSHKey": "Reset SSH key", "ResetSSHKey": "Reset SSH key",
"ResetSSHKeySuccessMsg": "Email Task Submitted, User Will Receive a Key Reset Email Shortly", "ResetSSHKeySuccessMsg": "Email task submitted, user will receive a url to reset shortly",
"ResetSSHKeyWarningMsg": "Are you sure you want to send a reset SSH Key email to the user?", "ResetSSHKeyWarningMsg": "Are you sure you want to send a reset SSH Key email to the user?",
"Resource": "Resources", "Resource": "Resources",
"ResourceType": "Resource Type", "ResourceType": "Resource Type",
@ -911,7 +913,7 @@
"RestoreDialogTitle": "Do you confirm?", "RestoreDialogTitle": "Do you confirm?",
"Result": "Result", "Result": "Result",
"Resume": "Recovery", "Resume": "Recovery",
"ResumeTaskSendSuccessMsg": "Recovery Task Issued, Please Refresh Later", "ResumeTaskSendSuccessMsg": "Recovery task issued, please refresh later",
"Retry": "Retry", "Retry": "Retry",
"ConnectAssets": "Connect", "ConnectAssets": "Connect",
"Reviewer": "Approvers", "Reviewer": "Approvers",
@ -938,7 +940,7 @@
"RunSucceed": "Task Successfully Completed", "RunSucceed": "Task Successfully Completed",
"RunTaskManually": "Manually Execute", "RunTaskManually": "Manually Execute",
"RunasHelpText": "Enter Username for Running Script", "RunasHelpText": "Enter Username for Running Script",
"RunasPolicy": "Account Policy", "RunasPolicy": "Account policy",
"RunasPolicyHelpText": "When there are no users currently running on the asset, what account selection strategy should be adopted. Skip: Do not execute. Prioritize privileged accounts: If there are privileged accounts, select them first; if not, select regular accounts. Only privileged accounts: Select only from privileged accounts; if none exist, do not execute.", "RunasPolicyHelpText": "When there are no users currently running on the asset, what account selection strategy should be adopted. Skip: Do not execute. Prioritize privileged accounts: If there are privileged accounts, select them first; if not, select regular accounts. Only privileged accounts: Select only from privileged accounts; if none exist, do not execute.",
"RunningPath": "Running Path", "RunningPath": "Running Path",
"RunningPathHelpText": "Enter the run path of the script, this setting only applies to shell scripts", "RunningPathHelpText": "Enter the run path of the script, this setting only applies to shell scripts",
@ -1036,7 +1038,7 @@
"SignChannelNum": "Channel Signature", "SignChannelNum": "Channel Signature",
"SiteMessage": "Notifications", "SiteMessage": "Notifications",
"SiteMessageList": "Notifications", "SiteMessageList": "Notifications",
"Skip": "Ignore Current Asset", "Skip": "Skip this asset",
"Skipped": "Skipped", "Skipped": "Skipped",
"Slack": "Slack", "Slack": "Slack",
"Source": "Source", "Source": "Source",
@ -1132,8 +1134,8 @@
"TestGatewayTestConnection": "Test Connect to Gateway", "TestGatewayTestConnection": "Test Connect to Gateway",
"TestLdapLoginTitle": "Test LDAP user login", "TestLdapLoginTitle": "Test LDAP user login",
"TestNodeAssetConnectivity": "Test Connectivity of Asset Nodes", "TestNodeAssetConnectivity": "Test Connectivity of Asset Nodes",
"TestPortErrorMsg": "Port Error, Please Re-enter", "TestPortErrorMsg": "Port error, Please re-enter",
"TestSuccessMsg": "Test Succeeded", "TestSuccessMsg": "Test succeeded",
"Thursday": "Thu", "Thursday": "Thu",
"Ticket": "Ticket", "Ticket": "Ticket",
"TicketDetail": "Ticket Details", "TicketDetail": "Ticket Details",
@ -1186,7 +1188,7 @@
"UpdateNodeAssetHardwareInfo": "Update Node Assets Hardware Information", "UpdateNodeAssetHardwareInfo": "Update Node Assets Hardware Information",
"UpdateSSHKey": "Change SSH Public Key", "UpdateSSHKey": "Change SSH Public Key",
"UpdateSelected": "Update selected", "UpdateSelected": "Update selected",
"UpdateSuccessMsg": "Update Successful", "UpdateSuccessMsg": "Update successful",
"Updated": "Updated", "Updated": "Updated",
"Upload": "Upload", "Upload": "Upload",
"UploadCsvLth10MHelpText": "Only csv/xlsx can be uploaded, and no more than 10M", "UploadCsvLth10MHelpText": "Only csv/xlsx can be uploaded, and no more than 10M",
@ -1209,7 +1211,7 @@
"UserGroupDetail": "User Group Details", "UserGroupDetail": "User Group Details",
"UserGroupList": "Groups", "UserGroupList": "Groups",
"UserGroupUpdate": "Update the User Group", "UserGroupUpdate": "Update the User Group",
"UserGroups": "User Groups", "UserGroups": "User groups",
"UserInformation": "User Info", "UserInformation": "User Info",
"UserList": "Users", "UserList": "Users",
"UserLoginACLHelpMsg": "When logging into the system, the user's login IP and time range can be audited to determine whether they are allowed to log into the system (effective globally)", "UserLoginACLHelpMsg": "When logging into the system, the user's login IP and time range can be audited to determine whether they are allowed to log into the system (effective globally)",