Update create_federal_portfolio.py

This commit is contained in:
zandercymatics 2024-08-30 09:55:29 -06:00
parent 02bc0cba1a
commit 8732af18d9
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -186,7 +186,7 @@ class Command(BaseCommand):
message = "Portfolios not added to domain requests: no valid records found"
TerminalHelper.colorful_logger(logger.info, TerminalColors.YELLOW, message)
return None
# Get all suborg information and store it in a dict to avoid doing a db call
suborgs = Suborganization.objects.filter(portfolio=portfolio).in_bulk(field_name="name")
for domain_request in domain_requests: