*: add model_name to TypeCreate API to pass to forms
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -93,6 +93,7 @@ class PropertyMappingViewSet(
 | 
			
		||||
                    "description": subclass.__doc__,
 | 
			
		||||
                    # pyright: reportGeneralTypeIssues=false
 | 
			
		||||
                    "component": subclass().component,
 | 
			
		||||
                    "model_name": subclass._meta.model_name
 | 
			
		||||
                }
 | 
			
		||||
            )
 | 
			
		||||
        return Response(TypeCreateSerializer(data, many=True).data)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user