From 44d6e749067e02eaf99de2a2a233c1b525b9c0f7 Mon Sep 17 00:00:00 2001 From: Sushil Tiwari Date: Thu, 9 Jan 2025 20:08:29 +0545 Subject: [PATCH] Remove unused fields from dreffinal and operational serializer --- dref/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dref/serializers.py b/dref/serializers.py index 239e54b31..345f4f2a1 100644 --- a/dref/serializers.py +++ b/dref/serializers.py @@ -1084,7 +1084,6 @@ def create(self, validated_data): ) validated_data["event_date"] = dref_operational_update.event_date validated_data["people_in_need"] = dref_operational_update.people_in_need - validated_data["event_text"] = dref_operational_update.event_text validated_data["ns_respond_date"] = dref_operational_update.ns_respond_date validated_data["assessment_report"] = dref_operational_update.assessment_report @@ -1172,6 +1171,7 @@ def create(self, validated_data): validated_data["response_strategy"] = dref.response_strategy validated_data["created_by"] = self.context["request"].user validated_data["event_description"] = dref.event_description + validated_data["anticipatory_actions"] = dref.anticipatory_actions validated_data["event_scope"] = dref.event_scope validated_data["assessment_report"] = dref.assessment_report validated_data["country"] = dref.country