fix: 【【账号管理】应用账号导出字段存在英文】

pull/7077/head
feng626 2021-10-26 13:34:59 +08:00
parent 3f72c02049
commit da79f8beab
1 changed files with 4 additions and 1 deletions

View File

@ -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')}
}