change livestock types weight
This commit is contained in:
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user