From 2ed3854ed420113b178a6274eeb2d74af7427250 Mon Sep 17 00:00:00 2001 From: sudan45 Date: Tue, 19 Nov 2024 11:53:48 +0545 Subject: [PATCH] add return when pillar is not None --- apps/analysis/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/analysis/serializers.py b/apps/analysis/serializers.py index 242b0db6d8..520f260601 100644 --- a/apps/analysis/serializers.py +++ b/apps/analysis/serializers.py @@ -457,8 +457,8 @@ def create_or_update_pillar(self, pillar_data, instance): data=data, context=self.context ) + return analysis_pillar_serializer analysis_pillar_serializer = AnalysisPillarGqlSerializer(data=data, context=self.context) - return analysis_pillar_serializer def update(self, instance, validated_data):