livestock type in quota limitations
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user