From 7e0a915424ff4697de6c3b32b2b18907c889d605 Mon Sep 17 00:00:00 2001 From: Rachid Mrad Date: Fri, 27 Sep 2024 18:39:18 -0400 Subject: [PATCH] make sure at least 1 other contact is created --- src/registrar/fixtures/fixtures_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registrar/fixtures/fixtures_requests.py b/src/registrar/fixtures/fixtures_requests.py index f60619e2f..f5b57491e 100644 --- a/src/registrar/fixtures/fixtures_requests.py +++ b/src/registrar/fixtures/fixtures_requests.py @@ -244,7 +244,7 @@ def _set_many_to_many_relations(cls, request: DomainRequest, request_dict: dict) request.other_contacts.add(Contact.objects.get_or_create(**contact)[0]) elif not request.other_contacts.exists(): other_contacts = [ - Contact.objects.create(**cls.fake_contact()) for _ in range(random.randint(0, 3)) # nosec + Contact.objects.create(**cls.fake_contact()) for _ in range(random.randint(1, 3)) # nosec ] request.other_contacts.add(*other_contacts)