livestock type in quota limitations

This commit is contained in:
2025-07-14 13:40:16 +03:30
parent 1b5b85a663
commit 2d31a64e3b
3 changed files with 43 additions and 1 deletions

View File

@@ -458,7 +458,12 @@ class QuotaLiveStockAgeLimitation(BaseModel):
related_name='livestock_age_limitations',
null=True
)
livestock_type = models.CharField(max_length=20, choices=LivestockType.choices, null=True)
livestock_type = models.ForeignKey(
LiveStockType,
on_delete=models.CASCADE,
related_name='quota_limitations',
null=True
)
livestock_subtype = models.CharField(max_length=20, choices=LivestockSubtype.choices, null=True)
age_month = models.PositiveIntegerField(default=0)