1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #6675 from AlanCoding/controller_id_sf

add isolated job controller_id to summary fields
This commit is contained in:
Alan Rominger 2017-06-22 10:44:53 -04:00 committed by GitHub
commit 8f254dbd82
2 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,7 @@ SUMMARIZABLE_FK_FIELDS = {
'source_script': ('name', 'description'),
'role': ('id', 'role_field'),
'notification_template': DEFAULT_SUMMARY_FIELDS,
'instance_group': {'id', 'name'},
'instance_group': {'id', 'name', 'controller_id'},
'insights_credential': DEFAULT_SUMMARY_FIELDS,
}

View File

@ -2037,6 +2037,7 @@ class UnifiedJobAccess(BaseAccess):
'modified_by',
'unified_job_node__workflow_job',
'unified_job_template',
'instance_group',
Prefetch('labels', queryset=Label.objects.all().order_by('name'))
)