From 8965451073cc0f5984a93949818be6941b22393d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 9 Oct 2021 15:57:31 +0200 Subject: [PATCH] core: add default for user's settings attribute Signed-off-by: Jens Langhammer --- authentik/core/api/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index bdd6438c1..75da4fdc6 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -103,7 +103,7 @@ class UserSelfSerializer(ModelSerializer): avatar = CharField(read_only=True) groups = SerializerMethodField() uid = CharField(read_only=True) - settings = DictField(source="attributes.settings") + settings = DictField(source="attributes.settings", default=dict) @extend_schema_field( ListSerializer(