Skip to content

Commit

Permalink
Remove unused fields from dreffinal and operational serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
susilnem committed Jan 9, 2025
1 parent 2b210e8 commit 60a0368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dref/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -1183,6 +1183,7 @@ def create(self, validated_data):
validated_data["is_there_major_coordination_mechanism"] = dref.is_there_major_coordination_mechanism
validated_data["event_date"] = dref.event_date
validated_data["people_in_need"] = dref.people_in_need
validated_data["event_text"] = dref.event_text
validated_data["ns_respond_date"] = dref.ns_respond_date

if validated_data["type_of_dref"] == Dref.DrefType.LOAN:
Expand Down

0 comments on commit 60a0368

Please sign in to comment.