fix(orgs): 修复 org-memeber-relation POST 报错

pull/4634/head
xinwen 2020-09-14 10:39:33 +08:00 committed by 老广
parent 363f0326fd
commit 9060b49dcb
1 changed files with 3 additions and 3 deletions

View File

@ -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