mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
use len instead of count to take advantage of cache
This commit is contained in:
@@ -238,7 +238,7 @@ def migrate_projects(apps, schema_editor):
|
||||
original_project_name = project.name
|
||||
project_orgs = project.deprecated_organizations.distinct().all()
|
||||
|
||||
if project_orgs.count() > 1:
|
||||
if len(project_orgs) > 1:
|
||||
first_org = None
|
||||
for org in project_orgs:
|
||||
if first_org is None:
|
||||
|
||||
Reference in New Issue
Block a user