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 44d6e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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 Down

0 comments on commit 44d6e74

Please sign in to comment.