From d4691d988f84502a37c1f87f2e4febced2c9533e Mon Sep 17 00:00:00 2001 From: Ilja Livenson Date: Thu, 29 Feb 2024 14:28:13 +0200 Subject: [PATCH] Expose attributes of resource in all custom scripts [GH-53] --- src/waldur_mastermind/marketplace_script/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/waldur_mastermind/marketplace_script/serializers.py b/src/waldur_mastermind/marketplace_script/serializers.py index e16954549..cb95cc93b 100644 --- a/src/waldur_mastermind/marketplace_script/serializers.py +++ b/src/waldur_mastermind/marketplace_script/serializers.py @@ -28,6 +28,7 @@ class OrderSerializer(CommonSerializer): resource_backend_metadata = serializers.ReadOnlyField( source="resource.backend_metadata" ) + resource_attributes = serializers.ReadOnlyField(source="resource.attributes") class ResourceSerializer(CommonSerializer):