2021-09-27 11:06:26 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
DEFAULT_CITY = _("Unknown")
|
2022-05-05 06:42:09 +00:00
|
|
|
|
|
|
|
MODELS_NEED_RECORD = (
|
|
|
|
# users
|
|
|
|
'User', 'UserGroup',
|
2022-11-04 06:22:38 +00:00
|
|
|
# authentication
|
|
|
|
'AccessKey', 'TempToken',
|
2022-05-05 06:42:09 +00:00
|
|
|
# acls
|
|
|
|
'LoginACL', 'LoginAssetACL', 'LoginConfirmSetting',
|
|
|
|
# assets
|
|
|
|
'Asset', 'Node', 'AdminUser', 'SystemUser', 'Domain', 'Gateway', 'CommandFilterRule',
|
2022-11-04 06:22:38 +00:00
|
|
|
'CommandFilter', 'Platform', 'Label',
|
2022-05-05 06:42:09 +00:00
|
|
|
# applications
|
|
|
|
'Application',
|
2022-11-14 00:19:32 +00:00
|
|
|
# account
|
|
|
|
'AuthBook',
|
2022-05-05 06:42:09 +00:00
|
|
|
# orgs
|
|
|
|
'Organization',
|
|
|
|
# settings
|
|
|
|
'Setting',
|
|
|
|
# perms
|
|
|
|
'AssetPermission', 'ApplicationPermission',
|
2022-11-04 06:22:38 +00:00
|
|
|
# notifications
|
|
|
|
'SystemMsgSubscription', 'UserMsgSubscription',
|
|
|
|
# Terminal
|
|
|
|
'Terminal', 'Endpoint', 'EndpointRule', 'CommandStorage', 'ReplayStorage',
|
|
|
|
# rbac
|
|
|
|
'Role', 'SystemRole', 'OrgRole', 'RoleBinding', 'OrgRoleBinding', 'SystemRoleBinding',
|
2022-05-05 06:42:09 +00:00
|
|
|
# xpack
|
2022-11-04 06:22:38 +00:00
|
|
|
'License', 'Account', 'SyncInstanceTask', 'ChangeAuthPlan', 'ApplicationChangeAuthPlan',
|
|
|
|
'GatherUserTask', 'Interface',
|
2022-05-05 06:42:09 +00:00
|
|
|
)
|