mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-29 20:43:10 +02:00
Parsing org data
This commit is contained in:
parent
e0e0950d3e
commit
35a0ed751e
5 changed files with 418 additions and 48 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue