Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
l y
Jumpserver
Commits
da79f8be
Commit
da79f8be
authored
3 years ago
by
feng626
Browse files
Options
Download
Email Patches
Plain Diff
fix: 【【账号管理】应用账号导出字段存在英文】
parent
3f72c020
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/applications/serializers/application.py
+4
-1
apps/applications/serializers/application.py
with
4 additions
and
1 deletion
+4
-1
apps/applications/serializers/application.py
+
4
-
1
View file @
da79f8be
...
...
@@ -104,7 +104,8 @@ class AppAccountSerializer(AuthSerializerMixin, BulkOrgResourceModelSerializer):
extra_kwargs
=
{
'username'
:
{
'default'
:
''
,
'required'
:
False
},
'password'
:
{
'write_only'
:
True
},
'app_display'
:
{
'label'
:
_
(
'Application display'
)}
'app_display'
:
{
'label'
:
_
(
'Application display'
)},
'systemuser_display'
:
{
'label'
:
_
(
'System User'
)}
}
use_model_bulk_create
=
True
model_bulk_create_kwargs
=
{
...
...
@@ -134,4 +135,6 @@ class AppAccountSecretSerializer(AppAccountSerializer):
'password'
:
{
'write_only'
:
False
},
'private_key'
:
{
'write_only'
:
False
},
'public_key'
:
{
'write_only'
:
False
},
'app_display'
:
{
'label'
:
_
(
'Application display'
)},
'systemuser_display'
:
{
'label'
:
_
(
'System User'
)}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help