fix: 应用账号attrs字段问题

pull/7540/head
feng626 2022-01-20 12:49:32 +08:00 committed by Jiangjie.Bai
parent b07f532a71
commit a81f6bf97b
1 changed files with 1 additions and 4 deletions

View File

@ -157,10 +157,7 @@ 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},