some changes

This commit is contained in:
2025-08-06 13:32:50 +03:30
parent d9d0537ac9
commit 30dcdb2db6
18 changed files with 251 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ class Herd(BaseModel):
null=True
)
postal = models.CharField(
max_length=10,
max_length=20,
help_text="herd postal code", null=True
)
institution = models.CharField(
@@ -56,8 +56,8 @@ class Herd(BaseModel):
related_name="herd_contractor",
null=True
)
latitude = models.DecimalField(max_digits=22, decimal_places=16, null=True)
longitude = models.DecimalField(max_digits=22, decimal_places=16, null=True)
latitude = models.FloatField(default=0)
longitude = models.FloatField(default=0)
unit_unique_id = models.CharField(max_length=20, null=True)
activity_types = (
("I", "Industrial"),
@@ -82,12 +82,13 @@ class Herd(BaseModel):
class Rancher(BaseModel):
ranching_farm = models.CharField(max_length=150, null=True)
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)
mobile = models.CharField(max_length=25, null=True)
national_code = models.CharField(max_length=20, null=True)
national_code = models.CharField(max_length=50, null=True)
birthdate = models.DateTimeField(null=True)
nationality = models.CharField(max_length=20, null=True)
nationality = models.CharField(max_length=50, null=True)
address = models.TextField(blank=True)
province = models.ForeignKey(
auth_models.Province,