Skip to content

Commit

Permalink
fix: user orgs add field: is_system
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie authored and ZhaoJiSen committed Dec 10, 2024
1 parent 08de04f commit d005bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/orgs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Meta:
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:
Expand Down
1 change: 1 addition & 0 deletions apps/users/serializers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d005bd8

Please sign in to comment.