From 9412fd281e62153e16cface52c3057cb86d4afb4 Mon Sep 17 00:00:00 2001 From: Rebecca Hsieh Date: Wed, 26 Jun 2024 13:58:17 -0700 Subject: [PATCH] Remove migration --- ...formation_authorizing_official_and_more.py | 59 ------------------- src/registrar/models/domain_request.py | 2 +- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 src/registrar/migrations/0107_remove_domaininformation_authorizing_official_and_more.py diff --git a/src/registrar/migrations/0107_remove_domaininformation_authorizing_official_and_more.py b/src/registrar/migrations/0107_remove_domaininformation_authorizing_official_and_more.py deleted file mode 100644 index 45964c97b..000000000 --- a/src/registrar/migrations/0107_remove_domaininformation_authorizing_official_and_more.py +++ /dev/null @@ -1,59 +0,0 @@ -# Generated by Django 4.2.10 on 2024-06-24 19:00 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("registrar", "0106_create_groups_v14"), - ] - - operations = [ - migrations.RemoveField( - model_name="domaininformation", - name="authorizing_official", - ), - migrations.RemoveField( - model_name="domainrequest", - name="authorizing_official", - ), - migrations.AddField( - model_name="domaininformation", - name="senior_official", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="information_senior_official", - to="registrar.contact", - ), - ), - migrations.AddField( - model_name="domainrequest", - name="senior_official", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="senior_official", - to="registrar.contact", - ), - ), - migrations.AlterField( - model_name="domainrequest", - name="action_needed_reason", - field=models.TextField( - blank=True, - choices=[ - ("eligibility_unclear", "Unclear organization eligibility"), - ("questionable_senior_official", "Questionable senior official"), - ("already_has_domains", "Already has domains"), - ("bad_name", "Doesn’t meet naming requirements"), - ("other", "Other (no auto-email sent)"), - ], - null=True, - ), - ), - ] diff --git a/src/registrar/models/domain_request.py b/src/registrar/models/domain_request.py index 43d995c4e..9265a726e 100644 --- a/src/registrar/models/domain_request.py +++ b/src/registrar/models/domain_request.py @@ -1175,7 +1175,7 @@ class DomainRequest(TimeStampedModel): and self._is_requested_domain_complete() and self._is_purpose_complete() # NOTE: This flag leaves submitter as empty (request wont submit) hence preset to True - and (self._is_submitter_complete() or not has_profile_feature_flag) + and (self._is_submitter_complete() if not has_profile_feature_flag else True) and self._is_other_contacts_complete() and self._is_additional_details_complete() and self._is_policy_acknowledgement_complete()