Skip to content

feat: Trigger event translation for approved DREF#2754

Draft
susilnem wants to merge 2 commits into
project/dref-emergency-pagesfrom
feature/dref-event-trigger-translation
Draft

feat: Trigger event translation for approved DREF#2754
susilnem wants to merge 2 commits into
project/dref-emergency-pagesfrom
feature/dref-event-trigger-translation

Conversation

@susilnem
Copy link
Copy Markdown
Member

@susilnem susilnem commented Jun 1, 2026

Changes

  • trigger translation for the emergency generated from DREF
  • Add region on event based on the dref country

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.

@susilnem susilnem changed the title feat(dref): trigger event translation for approved dref feat: Trigger event translation for approved DREF Jun 1, 2026
@susilnem susilnem requested a review from sudip-khanal June 1, 2026 10:45
Comment thread dref/utils.py

event.countries.add(dref.country)
event.districts.add(*dref.district.all())
event.regions.add(dref.country.region)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some countries which are not associated with any region, we might need to add a check for whether the region exists or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants