Model update and migration and subsequent variable and wording changes

This commit is contained in:
Rebecca Hsieh 2023-09-06 15:58:57 -07:00
parent 370480572e
commit 696941aba7
No known key found for this signature in database
GPG key ID: 644527A2F375A379
11 changed files with 68 additions and 85 deletions

View file

@ -378,27 +378,12 @@ class DomainApplication(TimeStampedModel):
help_text="Urbanization (Puerto Rico only)",
)
type_of_work = models.TextField(
about_your_organization = models.TextField(
null=True,
blank=True,
help_text="Type of work of the organization",
help_text="Information about your organization",
)
# TODO-446:
# about_your_organization = models.TextField(
# null=True,
# blank=True,
# help_text="Information about your organization",
# )
more_organization_information = models.TextField(
null=True,
blank=True,
help_text="More information about your organization",
)
# TODO-446: Remove above bc we don't need this textbox anymore
authorizing_official = models.ForeignKey(
"registrar.Contact",
null=True,
@ -662,8 +647,7 @@ class DomainApplication(TimeStampedModel):
]
return bool(user_choice and user_choice not in excluded)
# TODO-446: Rename to show_about_your_organization
def show_type_of_work(self) -> bool:
def show_about_your_organization(self) -> bool:
"""Show this step if this is a special district or interstate."""
user_choice = self.organization_type
return user_choice in [