From 83fc2187ccd2f2474def34b3aa249beb3984b78d Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Tue, 3 Sep 2019 14:27:36 -0400 Subject: [PATCH] Fix the summary fields for webhook_credential --- awx/api/serializers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index c87b596782..8fe9b677d4 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -118,8 +118,8 @@ SUMMARIZABLE_FK_FIELDS = { 'project_update': DEFAULT_SUMMARY_FIELDS + ('status', 'failed',), 'credential': DEFAULT_SUMMARY_FIELDS + ('kind', 'cloud', 'credential_type_id'), 'job': DEFAULT_SUMMARY_FIELDS + ('status', 'failed', 'elapsed', 'type'), - 'job_template': DEFAULT_SUMMARY_FIELDS + ('webhook_credential',), - 'workflow_job_template': DEFAULT_SUMMARY_FIELDS + ('webhook_credential',), + 'job_template': DEFAULT_SUMMARY_FIELDS, + 'workflow_job_template': DEFAULT_SUMMARY_FIELDS, 'workflow_job': DEFAULT_SUMMARY_FIELDS, 'workflow_approval_template': DEFAULT_SUMMARY_FIELDS + ('timeout',), 'workflow_approval': DEFAULT_SUMMARY_FIELDS + ('timeout',), @@ -139,6 +139,7 @@ SUMMARIZABLE_FK_FIELDS = { 'insights_credential': DEFAULT_SUMMARY_FIELDS, 'source_credential': DEFAULT_SUMMARY_FIELDS + ('kind', 'cloud', 'credential_type_id'), 'target_credential': DEFAULT_SUMMARY_FIELDS + ('kind', 'cloud', 'credential_type_id'), + 'webhook_credential': DEFAULT_SUMMARY_FIELDS, }