@@ -379,25 +379,23 @@ def __str__(self):
379379
380380class PlannedOperation (models .Model ):
381381 class Sector (models .IntegerChoices ):
382- SHELTER = 101 , _ ("Shelter" )
383- SETTLEMENT_AND_HOUSING = 102 , _ ("Settlement and Housing" )
384- LIVELIHOODS = 103 , _ ("Livelihoods" )
385- PROTECTION_GENDER_AND_INCLUSION = 104 , _ ("Protection, Gender and Inclusion" )
386- HEALTH_AND_CARE = 105 , _ ("Health and Care" )
387- RISK_REDUCTION = 106 , _ ("Risk Reduction" )
388- CLIMATE_ADAPTATION_AND_RECOVERY = 107 , _ ("Climate Adaptation and Recovery" )
389- MULTIPURPOSE_CASH = 108 , _ ("Multipurpose Cash" )
390- WATER_SANITATION_AND_HYGIENE = 109 , _ ("Water, Sanitation And Hygiene" )
391- WASH = 110 , _ ("WASH" )
392- EDUCATION = 111 , _ ("Education" )
393- MIGRATION = 112 , _ ("Migration" )
394- ENVIRONMENT_SUSTAINABILITY = 113 , _ ("Environment Sustainability" )
395- COMMUNITY_ENGAGEMENT_AND_ACCOUNTABILITY = 114 , _ ("Community Engagement And Accountability" )
382+ SHELTER_SETTLEMENT_AND_HOUSING = 101 , _ ("Shelter, Settlement and Housing" )
383+ LIVELIHOODS = 102 , _ ("Livelihoods" )
384+ PROTECTION_GENDER_AND_INCLUSION = 103 , _ ("Protection, Gender and Inclusion" )
385+ HEALTH_AND_CARE = 104 , _ ("Health and Care" )
386+ RISK_REDUCTION_CLIMATE_ADAPTATION_AND_RECOVERY = 105 , _ ("Risk Reduction, Climate Adaptation and Recovery" )
387+ MULTIPURPOSE_CASH = 106 , _ ("Multipurpose Cash" )
388+ WATER_SANITATION_AND_HYGIENE = 107 , _ ("Water, Sanitation And Hygiene" )
389+ WASH = 108 , _ ("WASH" )
390+ EDUCATION = 109 , _ ("Education" )
391+ MIGRATION = 110 , _ ("Migration" )
392+ ENVIRONMENT_SUSTAINABILITY = 111 , _ ("Environment Sustainability" )
393+ COMMUNITY_ENGAGEMENT_AND_ACCOUNTABILITY = 112 , _ ("Community Engagement And Accountability" )
396394
397395 sector = models .IntegerField (choices = Sector .choices , verbose_name = _ ("sector" ))
398396 people_targeted = models .IntegerField (verbose_name = _ ("People Targeted" ))
399397 budget_per_sector = models .IntegerField (verbose_name = _ ("Budget per sector (CHF)" ))
400- ap_code = models .IntegerField (verbose_name = _ ("AP Code" ), null = True , blank = True )
398+ ap_code = models .IntegerField (verbose_name = _ ("AP Code" ))
401399 previous_id = models .PositiveIntegerField (verbose_name = _ ("Previous ID" ), null = True , blank = True )
402400
403401 indicators = models .ManyToManyField (
@@ -812,6 +810,8 @@ class CommonEAPFields(models.Model):
812810
813811 people_targeted = models .IntegerField (
814812 verbose_name = _ ("People Targeted." ),
813+ blank = True ,
814+ null = True ,
815815 )
816816
817817 # Contacts
@@ -1343,6 +1343,8 @@ class FullEAP(EAPBaseModel, CommonEAPFields):
13431343 is_worked_with_government = models .BooleanField (
13441344 verbose_name = _ ("Has Worked with government or other relevant actors." ),
13451345 default = False ,
1346+ null = True ,
1347+ blank = True ,
13461348 )
13471349
13481350 worked_with_government_description = models .TextField (
@@ -1447,6 +1449,7 @@ class FullEAP(EAPBaseModel, CommonEAPFields):
14471449 )
14481450
14491451 # NOTE: In days
1452+ # TODO(susilnem): add unit for lead time
14501453 lead_time = models .IntegerField (
14511454 verbose_name = _ ("Lead Time" ),
14521455 null = True ,
@@ -1675,6 +1678,13 @@ class FullEAP(EAPBaseModel, CommonEAPFields):
16751678 related_name = "full_eap_meal_files" ,
16761679 )
16771680
1681+ meal_source_of_information = models .ManyToManyField (
1682+ SourceInformation ,
1683+ verbose_name = _ ("meal source of information" ),
1684+ related_name = "meal_source_of_information" ,
1685+ blank = True ,
1686+ )
1687+
16781688 # NATIONAL SOCIETY CAPACITY
16791689 operational_administrative_capacity = models .TextField (
16801690 verbose_name = _ ("National Society Operational, thematic and administrative capacity" ),
@@ -1701,6 +1711,13 @@ class FullEAP(EAPBaseModel, CommonEAPFields):
17011711 related_name = "ns_capacity_relevant_files" ,
17021712 )
17031713
1714+ ns_capacity_source_of_information = models .ManyToManyField (
1715+ SourceInformation ,
1716+ verbose_name = _ ("ns_capacity source of information" ),
1717+ related_name = "ns_capacity_source_of_information" ,
1718+ blank = True ,
1719+ )
1720+
17041721 # FINANCE AND LOGISTICS
17051722
17061723 budget_description = models .TextField (
0 commit comments