diff --git a/src/registrar/migrations/0100_domaininformation_cisa_representative_first_name_and_more.py b/src/registrar/migrations/0100_domaininformation_cisa_representative_first_name_and_more.py index c0e84a4de..043989e78 100644 --- a/src/registrar/migrations/0100_domaininformation_cisa_representative_first_name_and_more.py +++ b/src/registrar/migrations/0100_domaininformation_cisa_representative_first_name_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.10 on 2024-06-11 20:18 +# Generated by Django 4.2.10 on 2024-06-11 20:53 from django.db import migrations, models @@ -24,6 +24,20 @@ class Migration(migrations.Migration): blank=True, db_index=True, null=True, verbose_name="CISA regional representative last name" ), ), + migrations.AddField( + model_name="domaininformation", + name="has_anything_else_text", + field=models.BooleanField( + blank=True, help_text="Determines if the user has a anything_else or not", null=True + ), + ), + migrations.AddField( + model_name="domaininformation", + name="has_cisa_representative", + field=models.BooleanField( + blank=True, help_text="Determines if the user has a representative email or not", null=True + ), + ), migrations.AddField( model_name="domainrequest", name="cisa_representative_first_name", diff --git a/src/registrar/models/domain_information.py b/src/registrar/models/domain_information.py index 71e443afe..62db04ac8 100644 --- a/src/registrar/models/domain_information.py +++ b/src/registrar/models/domain_information.py @@ -214,6 +214,15 @@ class DomainInformation(TimeStampedModel): verbose_name="Additional details", ) + # This is a drop-in replacement for a has_anything_else_text() function. + # In order to track if the user has clicked the yes/no field (while keeping a none default), we need + # a tertiary state. We should not display this in /admin. + has_anything_else_text = models.BooleanField( + null=True, + blank=True, + help_text="Determines if the user has a anything_else or not", + ) + cisa_representative_email = models.EmailField( null=True, blank=True, @@ -235,6 +244,15 @@ class DomainInformation(TimeStampedModel): db_index=True, ) + # This is a drop-in replacement for an has_cisa_representative() function. + # In order to track if the user has clicked the yes/no field (while keeping a none default), we need + # a tertiary state. We should not display this in /admin. + has_cisa_representative = models.BooleanField( + null=True, + blank=True, + help_text="Determines if the user has a representative email or not", + ) + is_policy_acknowledged = models.BooleanField( null=True, blank=True,