Remove fields not needed from .only

This commit is contained in:
Alan Rominger 2021-05-11 16:26:12 -04:00
parent 0f5629b514
commit 164255e516
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -511,7 +511,7 @@ class JobEvent(BasePlaybookEvent):
from awx.main.models import Host, JobHostSummary # circular import
all_hosts = Host.objects.filter(pk__in=self.host_map.values()).only('id', 'name', 'last_job_id', 'last_job_host_summary_id')
all_hosts = Host.objects.filter(pk__in=self.host_map.values()).only('id', 'name')
existing_host_ids = set(h.id for h in all_hosts)
summaries = dict()