From 114645732a66e9bad1f102ff70a7c838f741c067 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 26 Jul 2023 19:22:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=94=A8=E6=88=B7=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=20API=20=E8=BF=94=E5=9B=9E=20id=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/perms/serializers/user_permission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/perms/serializers/user_permission.py b/apps/perms/serializers/user_permission.py index 44904e82e..ba69cdeaf 100644 --- a/apps/perms/serializers/user_permission.py +++ b/apps/perms/serializers/user_permission.py @@ -69,7 +69,7 @@ class AccountsPermedSerializer(serializers.ModelSerializer): class Meta: model = Account fields = [ - 'alias', 'name', 'username', 'has_username', + 'id', 'alias', 'name', 'username', 'has_username', 'has_secret', 'secret_type', 'actions' ] read_only_fields = fields