From a81f6bf97bb2dfa05a23055734e2fb566b2067e3 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Thu, 20 Jan 2022 12:49:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E7=94=A8=E8=B4=A6=E5=8F=B7attr?= =?UTF-8?q?s=E5=AD=97=E6=AE=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/applications/serializers/application.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/applications/serializers/application.py b/apps/applications/serializers/application.py index 860ca87ee..25171f181 100644 --- a/apps/applications/serializers/application.py +++ b/apps/applications/serializers/application.py @@ -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},