From 84e60283b8bdc32b9b7411044cccf4dd874ac69d Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 13 Aug 2021 18:39:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(account):=20=E4=BF=AE=E5=A4=8D=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E8=B4=A6=E5=8F=B7=E5=89=8D=E7=AB=AF=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E7=9A=84=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/applications/serializers/application.py b/apps/applications/serializers/application.py index 3aa2c642c..73b4eb7f7 100644 --- a/apps/applications/serializers/application.py +++ b/apps/applications/serializers/application.py @@ -68,6 +68,7 @@ class ApplicationSerializer(ApplicationSerializerMixin, BulkOrgResourceModelSeri class ApplicationAccountSerializer(serializers.Serializer): + id = serializers.ReadOnlyField(label=_("Id"), source='uid') username = serializers.ReadOnlyField(label=_("Username")) password = serializers.CharField(write_only=True, label=_("Password")) systemuser = serializers.ReadOnlyField(label=_('System user'))