changed Address line 2 from Char to TextField

This commit is contained in:
Jon Roberts 2023-05-31 13:08:33 -04:00
parent 4276a35a97
commit 25cc38ff71
No known key found for this signature in database
GPG key ID: EED093582198B041
2 changed files with 22 additions and 2 deletions

View file

@ -343,8 +343,7 @@ class DomainApplication(TimeStampedModel):
blank=True,
help_text="Street address",
)
address_line2 = models.CharField(
max_length=15,
address_line2 = models.TextField(
null=True,
blank=True,
help_text="Street address line 2",
@ -562,11 +561,13 @@ class DomainApplication(TimeStampedModel):
"""Show this step if the answer to the first question implies it.
This shows for answers that aren't "Federal" or "Interstate".
This also doesnt show if user selected "School District" as well (#524)
"""
user_choice = self.organization_type
excluded = [
DomainApplication.OrganizationChoices.FEDERAL,
DomainApplication.OrganizationChoices.INTERSTATE,
DomainApplication.OrganizationChoices.SCHOOL_DISTRICT,
]
return bool(user_choice and user_choice not in excluded)