mirror of https://github.com/jumpserver/jumpserver
fix(orgs): 修复 org-memeber-relation POST 报错
parent
363f0326fd
commit
9060b49dcb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue