Fix migrations and issue

This commit is contained in:
Rebecca Hsieh 2024-05-06 15:02:51 -07:00
parent 83ac30f3e5
commit f36ac30945
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View file

@ -139,7 +139,8 @@ class DomainRequestFixture:
da.federal_agency, _ = FederalAgency.objects.get_or_create(name=app["federal_agency"])
else:
federal_agencies = FederalAgency.objects.all()
da.federal_agency = random.choice(federal_agencies)
# Random choice of agency for selects, used as placeholders for testing.
da.federal_agency = random.choice(federal_agencies) # nosec
@classmethod
def _set_many_to_many_relations(cls, da: DomainRequest, app: dict):

View file

@ -18,4 +18,4 @@ class Migration(migrations.Migration):
model_name="domainrequest",
name="federal_agency",
),
]
]

View file

@ -20,4 +20,4 @@ class Migration(migrations.Migration):
old_name="updated_federal_agency",
new_name="federal_agency",
),
]
]