change map structure of rancher quota weight satistics

This commit is contained in:
2025-09-22 15:36:25 +03:30
parent ecb1049681
commit d528f5e9ac
4 changed files with 66 additions and 17 deletions

View File

@@ -17,7 +17,8 @@ class LiveStockSpecies(BaseModel): # noqa
class LiveStockType(BaseModel): # noqa
""" types like sheep, cow, camel, etc """
name = models.CharField(max_length=50)
name = models.CharField(max_length=50, null=True)
en_name = models.CharField(max_length=50, null=True)
weight_types = (
('L', 'Light'),
('H', 'Heavy')
@@ -37,7 +38,8 @@ class LiveStockType(BaseModel): # noqa
class LiveStockUseType(BaseModel):
""" use types like Beef, Milky, etc """
name = models.CharField(max_length=50)
name = models.CharField(max_length=50, null=True)
en_name = models.CharField(max_length=50, null=True)
def __str__(self):
return f'{self.name}'