mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 15:28:38 +00:00
fix: 修复导出应用账号会包含attrs字段的问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
46270fd91c
commit
b07f532a71
@@ -157,6 +157,10 @@ class AppAccountSecretSerializer(AppAccountSerializer):
|
||||
'id', 'app_display', 'attrs', 'username', 'password', 'private_key',
|
||||
'public_key', 'date_created', 'date_updated', 'version'
|
||||
]
|
||||
fields = [
|
||||
field_name for field_name in AppAccountSerializer.Meta.fields
|
||||
if field_name not in ['attrs']
|
||||
]
|
||||
extra_kwargs = {
|
||||
'password': {'write_only': False},
|
||||
'private_key': {'write_only': False},
|
||||
|
Reference in New Issue
Block a user