perf: remove some category

pull/12543/head
ibuler 2024-01-15 16:38:16 +08:00
parent 00d6effd69
commit 513974bbed
4 changed files with 16 additions and 6 deletions

View File

@ -169,10 +169,10 @@ class AllTypes(ChoicesMixin):
(Category.HOST, HostTypes),
(Category.DEVICE, DeviceTypes),
(Category.DATABASE, DatabaseTypes),
(Category.CLOUD, CloudTypes),
(Category.WEB, WebTypes),
(Category.GPT, GPTTypes),
(Category.CUSTOM, CustomTypes),
# (Category.CLOUD, CloudTypes),
# (Category.WEB, WebTypes),
# (Category.GPT, GPTTypes),
# (Category.CUSTOM, CustomTypes),
)
@classmethod

View File

@ -1107,7 +1107,7 @@
"OrgAdmin": "Org Admin",
"OrgAuditor": "Org Auditor",
"OrgName": "Org name",
"OrgRole": "Org role",
"OrgRole": "Org roles",
"OrgRoleHelpText": "Organizational roles are the user's role in the current organization",
"OrgRoles": "Org roles",
"OrgUser": "Org User",
@ -1620,6 +1620,11 @@
"TableColSettingInfo": "Please select the list details you want to display",
"Target": "Target",
"TargetResources": "Target resources",
"MenuUsers": "Users",
"MenuAssets": "Assets",
"MenuAccounts": "Accounts",
"MenuPermissions": "Permissions",
"MenuMore": "More...",
"Task": "Task",
"TaskCenter": "Task",
"TaskDetail": "Task detail",

View File

@ -442,6 +442,11 @@
"Correlation": "关联",
"Cpu": "CPU",
"Create": "创建",
"MenuUsers": "用户管理",
"MenuAssets": "资产管理",
"MenuAccounts": "账号管理",
"MenuPermissions": "授权管理",
"MenuMore": "更多...",
"CreateAccessKey": "创建访问密钥",
"CreateAccountTemplate": "创建账号模版",
"CreateAdhoc": "创建命令",

View File

@ -24,7 +24,7 @@ class RoleSerializer(serializers.ModelSerializer):
]
extra_kwargs = {
'permissions': {'write_only': True},
'users_amount': {'label': _('Users amount')},
'users_amount': {'label': _('Users')},
'display_name': {'label': _('Display name')}
}