[Update] 翻译应用树更节点(API)

pull/3650/head
Bai 5 years ago
parent eb1ca4c0f2
commit dd52baae12

@ -2,6 +2,7 @@
#
from django.db.models import Q
from django.utils.translation import ugettext as _
from orgs.utils import set_to_root_org
from ..models import DatabaseAppPermission
@ -16,7 +17,6 @@ __all__ = [
'parse_database_app_to_tree_node'
]
def get_user_database_app_permissions(user, include_group=True):
if include_group:
groups = user.groups.all()
@ -73,7 +73,7 @@ class DatabaseAppPermissionUtil:
def construct_database_apps_tree_root():
tree_root = {
'id': 'ID_DATABASE_APP_ROOT',
'name': 'DatabaseApp',
'name': _('DatabaseApp'),
'title': 'DatabaseApp',
'pId': '',
'open': False,

@ -2,6 +2,7 @@
#
from django.db.models import Q
from django.utils.translation import ugettext as _
from common.tree import TreeNode
from orgs.utils import set_to_root_org
@ -72,7 +73,7 @@ class RemoteAppPermissionUtil:
def construct_remote_apps_tree_root():
tree_root = {
'id': 'ID_REMOTE_APP_ROOT',
'name': 'RemoteApp',
'name': _('RemoteApp'),
'title': 'RemoteApp',
'pId': '',
'open': False,

Loading…
Cancel
Save