From 9060b49dcbdae449b47540f52ca5c3491c7f6f33 Mon Sep 17 00:00:00 2001 From: xinwen Date: Mon, 14 Sep 2020 10:39:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(orgs):=20=E4=BF=AE=E5=A4=8D=20org-memeber-r?= =?UTF-8?q?elation=20POST=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/orgs/serializers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/orgs/serializers.py b/apps/orgs/serializers.py index c36d67d89..21b695996 100644 --- a/apps/orgs/serializers.py +++ b/apps/orgs/serializers.py @@ -52,9 +52,9 @@ class OrgReadSerializer(OrgSerializer): class OrgMemberSerializer(BulkModelSerializer): - org_display = serializers.CharField() - user_display = serializers.CharField() - role_display = serializers.CharField(source='get_role_display') + org_display = serializers.CharField(read_only=True) + user_display = serializers.CharField(read_only=True) + role_display = serializers.CharField(source='get_role_display', read_only=True) class Meta: model = OrganizationMember