Parsing org data

This commit is contained in:
zandercymatics 2023-11-16 13:16:01 -07:00
parent e0e0950d3e
commit 35a0ed751e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 418 additions and 48 deletions

View file

@ -105,6 +105,36 @@ class TransitionDomain(TimeStampedModel):
blank=True,
help_text="Phone",
)
address_line = models.TextField(
null=True,
blank=True,
help_text="Street address",
)
city = models.TextField(
null=True,
blank=True,
help_text="City",
)
state_territory = models.CharField(
max_length=2,
null=True,
blank=True,
help_text="State, territory, or military post",
)
zipcode = models.CharField(
max_length=10,
null=True,
blank=True,
help_text="Zip code",
db_index=True,
)
country_code = models.CharField(
max_length=2,
null=True,
blank=True,
help_text="Country code",
)
# TODO - Country code?
def __str__(self):
return f"{self.username}, {self.domain_name}"
@ -128,4 +158,9 @@ class TransitionDomain(TimeStampedModel):
f"last_name: {self.last_name}, \n"
f"email: {self.email}, \n"
f"phone: {self.phone}, \n"
f"address_line: {self.address_line}, \n"
f"city: {self.city}, \n"
f"state_territory: {self.state_territory}, \n"
f"zipcode: {self.zipcode}, \n"
f"country_code: {self.country_code}, \n"
)