Skip to content

Commit 1b2f28a

Browse files
committed
Address PR feedback see HEA-789
1 parent dab35b7 commit 1b2f28a

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

apps/baseline/migrations/0020_remove_livelihoodproductcategory_livelihood_zone_baseline_and_more.py renamed to apps/baseline/migrations/0021_remove_livelihoodproductcategory_livelihood_zone_baseline_and_more.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Migration(migrations.Migration):
88

99
dependencies = [
10-
("baseline", "0019_alter_foodpurchase_times_per_year_and_more"),
10+
("baseline", "0020_alter_wealthgroup_wealth_group_category"),
1111
]
1212

1313
operations = [

apps/baseline/models.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,17 +1396,6 @@ class ProductBasket(models.IntegerChoices):
13961396
),
13971397
)
13981398

1399-
def clean(self):
1400-
super().clean()
1401-
if self.percentage_allocation_to_basket and self.percentage_allocation_to_basket > 100:
1402-
raise ValidationError(
1403-
{
1404-
"percentage_allocation_to_basket": _(
1405-
f"Percentage allocation cannot exceed 100%. Got: {self.percentage_allocation_to_basket}%"
1406-
)
1407-
}
1408-
)
1409-
14101399
class Meta:
14111400
verbose_name = _("Livelihood Product Category")
14121401
verbose_name_plural = _("Livelihood Product Categories")

0 commit comments

Comments
 (0)