add new fields to rancher
This commit is contained in:
@@ -82,6 +82,30 @@ class Herd(BaseModel):
|
||||
|
||||
class Rancher(BaseModel):
|
||||
ranching_farm = models.CharField(max_length=150, null=True)
|
||||
union_name = models.CharField(max_length=50, null=True)
|
||||
union_code = models.CharField(max_length=50, null=True)
|
||||
activity_types = (
|
||||
("I", "Industrial"),
|
||||
("V", "Village"),
|
||||
("N", "Nomadic")
|
||||
)
|
||||
activity = models.CharField(
|
||||
choices=activity_types,
|
||||
max_length=1,
|
||||
null=True
|
||||
)
|
||||
rancher_types = (
|
||||
('N', 'Natural'),
|
||||
('L', 'Legal')
|
||||
)
|
||||
rancher_type = models.CharField(
|
||||
max_length=1,
|
||||
choices=rancher_types,
|
||||
default='N',
|
||||
help_text="N is natural & L is legal"
|
||||
)
|
||||
heavy_livestock_number = models.BigIntegerField(default=0)
|
||||
light_livestock_number = models.BigIntegerField(default=0)
|
||||
herd_code = models.CharField(max_length=100, null=True)
|
||||
first_name = models.CharField(max_length=150, null=True)
|
||||
last_name = models.CharField(max_length=150, null=True)
|
||||
|
||||
Reference in New Issue
Block a user