mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Add Type of Work section for special districts/interstate orgs
This commit is contained in:
parent
f30b83f904
commit
8b76490794
8 changed files with 311 additions and 3 deletions
|
@ -350,6 +350,18 @@ class DomainApplication(TimeStampedModel):
|
|||
help_text="Urbanization (Puerto Rico only)",
|
||||
)
|
||||
|
||||
type_of_work = models.TextField(
|
||||
null=True,
|
||||
blank=True,
|
||||
help_text="Type of work of the organization",
|
||||
)
|
||||
|
||||
more_organization_information = models.TextField(
|
||||
null=True,
|
||||
blank=True,
|
||||
help_text="Further information about the government organization",
|
||||
)
|
||||
|
||||
authorizing_official = models.ForeignKey(
|
||||
"registrar.Contact",
|
||||
null=True,
|
||||
|
@ -474,6 +486,14 @@ class DomainApplication(TimeStampedModel):
|
|||
]
|
||||
return bool(user_choice and user_choice not in excluded)
|
||||
|
||||
def show_type_of_work(self) -> bool:
|
||||
"""Show this step if this is a special district or interstate."""
|
||||
user_choice = self.organization_type
|
||||
return user_choice in [
|
||||
DomainApplication.OrganizationChoices.SPECIAL_DISTRICT,
|
||||
DomainApplication.OrganizationChoices.INTERSTATE,
|
||||
]
|
||||
|
||||
def is_federal(self) -> Union[bool, None]:
|
||||
"""Is this application for a federal agency?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue