From de74f3ec1fd8f4710911c47b6c3204caa8cf83b9 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)