mirror of https://github.com/jumpserver/jumpserver
fix: user orgs add field: is_system
parent
08de04fdbc
commit
d005bd804f
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue