Skip to content

Commit a465a61

Browse files
Merge pull request #2541 from IFRCGo/hotfix/old-dref-final-report-export
Hotfix old dref final report export
2 parents 9c42b39 + 9b00711 commit a465a61

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

api/migrations/0207_auto_20240311_1044.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ class Migration(migrations.Migration):
2020
name="export_type",
2121
field=models.CharField(
2222
choices=[
23-
("dref-applications", "Dref Applications"),
24-
("dref-operational-updates", "Dref Operational Updates"),
25-
("dref-final-reports", "Dref Final Reports"),
23+
("dref-applications", "DREF Application"),
24+
("dref-operational-updates", "DREF Operational Update"),
25+
("dref-final-reports", "DREF Final Report"),
26+
("old-dref-final-reports", "Old DREF Final Report"),
2627
("per", "Per"),
2728
],
2829
max_length=255,

api/models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,9 +2537,10 @@ class ExportStatus(models.IntegerChoices):
25372537
ERRORED = 2, _("Errored")
25382538

25392539
class ExportType(models.TextChoices):
2540-
DREF = "dref-applications", _("Dref Applications")
2541-
OPS_UPDATE = "dref-operational-updates", _("Dref Operational Updates")
2542-
FINAL_REPORT = "dref-final-reports", _("Dref Final Reports")
2540+
DREF = "dref-applications", _("DREF Application")
2541+
OPS_UPDATE = "dref-operational-updates", _("DREF Operational Update")
2542+
FINAL_REPORT = "dref-final-reports", _("DREF Final Report")
2543+
OLD_FINAL_REPORT = "old-dref-final-reports", _("Old DREF Final Report")
25432544
PER = "per", _("Per")
25442545

25452546
export_id = models.IntegerField(verbose_name=_("Export Id"))

0 commit comments

Comments
 (0)