core: make groups' parent_name nullable as it might not be set (#6700)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-08-30 20:39:57 +02:00 committed by GitHub
parent 9d894528e3
commit 3f3ca6fe82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class GroupSerializer(ModelSerializer):
users_obj = ListSerializer(
child=GroupMemberSerializer(), read_only=True, source="users", required=False
)
parent_name = CharField(source="parent.name", read_only=True)
parent_name = CharField(source="parent.name", read_only=True, allow_null=True)
num_pk = IntegerField(read_only=True)

View File

@ -30498,6 +30498,7 @@ components:
parent_name:
type: string
readOnly: true
nullable: true
users:
type: array
items: