fix: user orgs add field: is_system

pull/14632/head
Bai 2024-12-10 19:09:18 +08:00 committed by ZhaoJiSen
parent 08de04fdbc
commit d005bd804f
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class OrgSerializer(ModelSerializer):
class CurrentOrgSerializer(ModelSerializer): class CurrentOrgSerializer(ModelSerializer):
class Meta: class Meta:
model = Organization model = Organization
fields = ['id', 'name', 'is_default', 'is_root', 'comment'] fields = ['id', 'name', 'is_default', 'is_root', 'is_system', 'comment']
class CurrentOrgDefault: class CurrentOrgDefault:

View File

@ -13,6 +13,7 @@ class UserOrgSerializer(serializers.Serializer):
name = serializers.CharField() name = serializers.CharField()
is_default = serializers.BooleanField(read_only=True) is_default = serializers.BooleanField(read_only=True)
is_root = serializers.BooleanField(read_only=True) is_root = serializers.BooleanField(read_only=True)
is_system = serializers.BooleanField(read_only=True)
class UserUpdatePasswordSerializer(serializers.ModelSerializer): class UserUpdatePasswordSerializer(serializers.ModelSerializer):