mirror of https://github.com/jumpserver/jumpserver
fix: 应用账号attrs字段问题
parent
b07f532a71
commit
a81f6bf97b
|
@ -157,10 +157,7 @@ class AppAccountSecretSerializer(AppAccountSerializer):
|
||||||
'id', 'app_display', 'attrs', 'username', 'password', 'private_key',
|
'id', 'app_display', 'attrs', 'username', 'password', 'private_key',
|
||||||
'public_key', 'date_created', 'date_updated', 'version'
|
'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 = {
|
extra_kwargs = {
|
||||||
'password': {'write_only': False},
|
'password': {'write_only': False},
|
||||||
'private_key': {'write_only': False},
|
'private_key': {'write_only': False},
|
||||||
|
|
Loading…
Reference in New Issue