From 5623f162490bcc7246df84ae2424cce21d242bd3 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 7 Apr 2017 13:58:17 -0400 Subject: [PATCH] fix a bug in the v1/v2 API switch --- awx/main/models/unified_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index 98dadc941b..51d8f50aae 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -557,10 +557,10 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique related_name='%(class)s_labels' ) - def get_absolute_url(self): + def get_absolute_url(self, request=None): real_instance = self.get_real_instance() if real_instance != self: - return real_instance.get_absolute_url() + return real_instance.get_absolute_url(request=request) else: return ''