Skip to content

Commit 62e5ef0

Browse files
authored
Merge pull request #275 from American-Institutes-for-Research/HEA-796/import_livelihood_product_category
Hea 796/import livelihood product category
2 parents 1649f18 + 3134971 commit 62e5ef0

13 files changed

Lines changed: 1362 additions & 715 deletions

File tree

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Generated by Django 5.2.12 on 2026-04-19 16:43
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("baseline", "0031_case_insensitive_indexes"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="wealthgroup",
16+
name="percentage_of_households",
17+
field=models.FloatField(
18+
blank=True,
19+
help_text="Percentage of households in the Community or Livelihood Zone that are in this Wealth Group",
20+
null=True,
21+
validators=[django.core.validators.MinValueValidator(0)],
22+
verbose_name="Percentage of households",
23+
),
24+
),
25+
migrations.AlterField(
26+
model_name="expandabilityfactor",
27+
name="percentage_consumed",
28+
field=models.FloatField(
29+
blank=True,
30+
null=True,
31+
validators=[django.core.validators.MinValueValidator(0)],
32+
verbose_name="Quantity Consumed",
33+
),
34+
),
35+
migrations.AlterField(
36+
model_name="expandabilityfactor",
37+
name="percentage_expenditure",
38+
field=models.FloatField(
39+
blank=True,
40+
null=True,
41+
validators=[django.core.validators.MinValueValidator(0)],
42+
verbose_name="Expenditure",
43+
),
44+
),
45+
migrations.AlterField(
46+
model_name="expandabilityfactor",
47+
name="percentage_income",
48+
field=models.FloatField(
49+
blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name="Income"
50+
),
51+
),
52+
migrations.AlterField(
53+
model_name="expandabilityfactor",
54+
name="percentage_other_uses",
55+
field=models.FloatField(
56+
blank=True,
57+
null=True,
58+
validators=[django.core.validators.MinValueValidator(0)],
59+
verbose_name="Quantity Other Uses",
60+
),
61+
),
62+
migrations.AlterField(
63+
model_name="expandabilityfactor",
64+
name="percentage_produced",
65+
field=models.FloatField(
66+
blank=True,
67+
null=True,
68+
validators=[django.core.validators.MinValueValidator(0)],
69+
verbose_name="Quantity Produced",
70+
),
71+
),
72+
migrations.AlterField(
73+
model_name="expandabilityfactor",
74+
name="percentage_sold",
75+
field=models.FloatField(
76+
blank=True,
77+
null=True,
78+
validators=[django.core.validators.MinValueValidator(0)],
79+
verbose_name="Quantity Sold/Exchanged",
80+
),
81+
),
82+
migrations.AlterField(
83+
model_name="livelihoodproductcategory",
84+
name="basket",
85+
field=models.PositiveSmallIntegerField(
86+
choices=[
87+
(1, "Main Staple"),
88+
(2, "Other food survival"),
89+
(3, "Non-food survival"),
90+
(4, "Livelihoods Protection"),
91+
],
92+
verbose_name="Product Basket",
93+
),
94+
),
95+
migrations.AlterField(
96+
model_name="livelihoodproductcategory",
97+
name="percentage_allocation_to_basket",
98+
field=models.FloatField(
99+
default=0.0,
100+
help_text="The percentage of expenditure or kcals from the Livelihood Activity that is allocated to this Basket. The remainder is implicitly part of the 'Other' basket",
101+
validators=[django.core.validators.MinValueValidator(0)],
102+
verbose_name="Percentage allocation to basket",
103+
),
104+
preserve_default=False,
105+
),
106+
migrations.AlterField(
107+
model_name="livelihoodproductcategory",
108+
name="baseline_livelihood_activity",
109+
field=models.OneToOneField(
110+
on_delete=django.db.models.deletion.RESTRICT,
111+
to="baseline.baselinelivelihoodactivity",
112+
verbose_name="Baseline Livelihood Activity",
113+
),
114+
),
115+
]

0 commit comments

Comments
 (0)