From d005bd804fc44d7a6e5b27dbf11a8228c25da522 Mon Sep 17 00:00:00 2001 From: Bai Date: Tue, 10 Dec 2024 19:09:18 +0800 Subject: [PATCH] fix: user orgs add field: is_system --- apps/orgs/serializers.py | 2 +- apps/users/serializers/profile.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/orgs/serializers.py b/apps/orgs/serializers.py index fd4c16059..7c7cc02fb 100644 --- a/apps/orgs/serializers.py +++ b/apps/orgs/serializers.py @@ -39,7 +39,7 @@ class OrgSerializer(ModelSerializer): class CurrentOrgSerializer(ModelSerializer): class Meta: model = Organization - fields = ['id', 'name', 'is_default', 'is_root', 'comment'] + fields = ['id', 'name', 'is_default', 'is_root', 'is_system', 'comment'] class CurrentOrgDefault: diff --git a/apps/users/serializers/profile.py b/apps/users/serializers/profile.py index 5bbf5598a..d52c7be42 100644 --- a/apps/users/serializers/profile.py +++ b/apps/users/serializers/profile.py @@ -13,6 +13,7 @@ class UserOrgSerializer(serializers.Serializer): name = serializers.CharField() is_default = serializers.BooleanField(read_only=True) is_root = serializers.BooleanField(read_only=True) + is_system = serializers.BooleanField(read_only=True) class UserUpdatePasswordSerializer(serializers.ModelSerializer):