-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2399 from IFRCGo/project/dref-imminent
Project: New Dref Imminent workflow
- Loading branch information
Showing
7 changed files
with
380 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
dref/migrations/0076_dref_addressed_humanitarian_impacts_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# Generated by Django 4.2.16 on 2025-01-22 06:19 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("deployments", "0090_sectortag_title_ar_sectortag_title_en_and_more"), | ||
("dref", "0075_alter_dref_budget_file_preview_alter_dreffile_file_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="dref", | ||
name="addressed_humanitarian_impacts", | ||
field=models.TextField( | ||
blank=True, | ||
help_text=" Which of the expected severe humanitarian impacts of the hazard are your actions addressing?", | ||
null=True, | ||
verbose_name="Addressed Humanitarian Impacts", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="contingency_plans_supporting_document", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="dref_contingency_plans_supporting_document", | ||
to="dref.dreffile", | ||
verbose_name="Contingency Plans Supporting Document", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="hazard_date_and_location", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="When and where is the hazard expected to happen?", | ||
max_length=255, | ||
null=True, | ||
verbose_name="Hazard Date and Location", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="hazard_vulnerabilities_and_risks", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="Explain the underlying vulnerabilities and risks the hazard poses for at-risk communities?", | ||
null=True, | ||
verbose_name="Hazard Vulnerabilities and Risks", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="indirect_cost", | ||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name="Indirect Cost"), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="scenario_analysis_supporting_document", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="dref_scenario_supporting_document", | ||
to="dref.dreffile", | ||
verbose_name="Scenario Analysis Supporting Document", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="sub_total", | ||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name="Sub total"), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="surge_deployment_cost", | ||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name="Surge Deployment Cost"), | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="total", | ||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name="Total"), | ||
), | ||
migrations.CreateModel( | ||
name="ProposedAction", | ||
fields=[ | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
( | ||
"proposed_type", | ||
models.PositiveIntegerField( | ||
choices=[(1, "Early Actions"), (2, "Early Response")], verbose_name="dref proposed action" | ||
), | ||
), | ||
("budget", models.PositiveIntegerField(blank=True, null=True, verbose_name="Purpose Action Budgets")), | ||
("activity", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="deployments.sector")), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name="dref", | ||
name="proposed_action", | ||
field=models.ManyToManyField(blank=True, to="dref.proposedaction", verbose_name="Proposed Action"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.