Browse Source

perf: 修复批量更新组织失败的问题

pull/6794/head
Michael Bai 3 years ago committed by Jiangjie.Bai
parent
commit
932a65b840
  1. 2
      apps/orgs/serializers.py

2
apps/orgs/serializers.py

@ -25,7 +25,7 @@ class ResourceStatisticsSerializer(serializers.Serializer):
app_perms_amount = serializers.IntegerField(required=False)
class OrgSerializer(ModelSerializer):
class OrgSerializer(BulkModelSerializer):
users = serializers.PrimaryKeyRelatedField(many=True, queryset=User.objects.all(), write_only=True, required=False)
admins = serializers.PrimaryKeyRelatedField(many=True, queryset=User.objects.all(), write_only=True, required=False)
auditors = serializers.PrimaryKeyRelatedField(many=True, queryset=User.objects.all(), write_only=True, required=False)

Loading…
Cancel
Save