From b5b8573d8713e640a3d4af6e70e320dc3485047a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 17 Apr 2021 11:50:28 +0200 Subject: [PATCH] core: fix propertymapping API returning invalid value for components closes #746 Signed-off-by: Jens Langhammer --- authentik/core/api/propertymappings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/core/api/propertymappings.py b/authentik/core/api/propertymappings.py index da5da96cd..05633bf98 100644 --- a/authentik/core/api/propertymappings.py +++ b/authentik/core/api/propertymappings.py @@ -91,7 +91,8 @@ class PropertyMappingViewSet( { "name": subclass._meta.verbose_name, "description": subclass.__doc__, - "component": subclass.component, + # pyright: reportGeneralTypeIssues=false + "component": subclass().component, } ) return Response(TypeCreateSerializer(data, many=True).data)