diff --git a/src/registrar/fixtures/fixtures_requests.py b/src/registrar/fixtures/fixtures_requests.py index e50450a3e..f60619e2f 100644 --- a/src/registrar/fixtures/fixtures_requests.py +++ b/src/registrar/fixtures/fixtures_requests.py @@ -221,9 +221,7 @@ def _get_random_portfolio(cls): try: organization_names = [portfolio["organization_name"] for portfolio in PortfolioFixture.PORTFOLIOS] - portfolio_options = Portfolio.objects.filter( - organization_name__in=organization_names - ) + portfolio_options = Portfolio.objects.filter(organization_name__in=organization_names) return random.choice(portfolio_options) if portfolio_options.exists() else None # nosec except Exception as e: logger.warning(f"Expected fixture portfolio, did not find it: {e}") diff --git a/src/registrar/fixtures/fixtures_user_portfolio_permissions.py b/src/registrar/fixtures/fixtures_user_portfolio_permissions.py index cf46f9805..468044c54 100644 --- a/src/registrar/fixtures/fixtures_user_portfolio_permissions.py +++ b/src/registrar/fixtures/fixtures_user_portfolio_permissions.py @@ -35,9 +35,7 @@ def load(cls): organization_names = [portfolio["organization_name"] for portfolio in PortfolioFixture.PORTFOLIOS] - portfolios = list( - Portfolio.objects.filter(organization_name__in=organization_names) - ) + portfolios = list(Portfolio.objects.filter(organization_name__in=organization_names)) if not users: logger.warning("User fixtures missing.")