change livestock types weight

This commit is contained in:
2025-07-14 11:38:46 +03:30
parent 2c0e55a616
commit a5ce81efe7
4 changed files with 31 additions and 1 deletions

View File

@@ -18,6 +18,15 @@ class LiveStockSpecies(BaseModel): # noqa
class LiveStockType(BaseModel): # noqa
""" types like sheep, cow, camel, etc """
name = models.CharField(max_length=50)
weight_types = (
('L', 'Light'),
('H', 'Heavy')
)
weight_type = models.CharField(
choices=weight_types,
max_length=50,
null=True
)
def __str__(self):
return f'{self.name}'