core: fix propertymapping API returning invalid value for components
closes #746 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2e44c1cdfc
commit
b5b8573d87
|
@ -91,7 +91,8 @@ class PropertyMappingViewSet(
|
||||||
{
|
{
|
||||||
"name": subclass._meta.verbose_name,
|
"name": subclass._meta.verbose_name,
|
||||||
"description": subclass.__doc__,
|
"description": subclass.__doc__,
|
||||||
"component": subclass.component,
|
# pyright: reportGeneralTypeIssues=false
|
||||||
|
"component": subclass().component,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return Response(TypeCreateSerializer(data, many=True).data)
|
return Response(TypeCreateSerializer(data, many=True).data)
|
||||||
|
|
Reference in New Issue