mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-04 03:27:21 +02:00
changed Address line 2 from Char to TextField
This commit is contained in:
parent
4276a35a97
commit
25cc38ff71
2 changed files with 22 additions and 2 deletions
|
@ -0,0 +1,19 @@
|
||||||
|
# Generated by Django 4.1.6 on 2023-05-31 17:07
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("registrar", "0022_draftdomain_domainapplication_approved_domain_and_more"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="domainapplication",
|
||||||
|
name="address_line2",
|
||||||
|
field=models.TextField(
|
||||||
|
blank=True, help_text="Street address line 2", null=True
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -343,8 +343,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
blank=True,
|
blank=True,
|
||||||
help_text="Street address",
|
help_text="Street address",
|
||||||
)
|
)
|
||||||
address_line2 = models.CharField(
|
address_line2 = models.TextField(
|
||||||
max_length=15,
|
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
help_text="Street address line 2",
|
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.
|
"""Show this step if the answer to the first question implies it.
|
||||||
|
|
||||||
This shows for answers that aren't "Federal" or "Interstate".
|
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
|
user_choice = self.organization_type
|
||||||
excluded = [
|
excluded = [
|
||||||
DomainApplication.OrganizationChoices.FEDERAL,
|
DomainApplication.OrganizationChoices.FEDERAL,
|
||||||
DomainApplication.OrganizationChoices.INTERSTATE,
|
DomainApplication.OrganizationChoices.INTERSTATE,
|
||||||
|
DomainApplication.OrganizationChoices.SCHOOL_DISTRICT,
|
||||||
]
|
]
|
||||||
return bool(user_choice and user_choice not in excluded)
|
return bool(user_choice and user_choice not in excluded)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue