From 6ed9705d914b2972591895a8371a9882e093c453 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 14 Oct 2014 13:56:58 -0400 Subject: [PATCH] Small fix for system job serializer --- awx/api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index f3596b2272..4ff18514e2 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -1346,9 +1346,9 @@ class SystemJobSerializer(UnifiedJobSerializer): def get_related(self, obj): res = super(SystemJobSerializer, self).get_related(obj) - if obj.job_template and obj.job_template.active: + if obj.system_job_template and obj.system_job_template.active: res['system_job_template'] = reverse('api:system_job_template_detail', - args=(obj.job_template.pk,)) + args=(obj.system_job_template.pk,)) return res