mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Merge pull request #5980 from ryanpetrello/fix-v2-unified-jobs
fix a bug in the v1/v2 API switch
This commit is contained in:
@@ -557,10 +557,10 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
related_name='%(class)s_labels'
|
related_name='%(class)s_labels'
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self, request=None):
|
||||||
real_instance = self.get_real_instance()
|
real_instance = self.get_real_instance()
|
||||||
if real_instance != self:
|
if real_instance != self:
|
||||||
return real_instance.get_absolute_url()
|
return real_instance.get_absolute_url(request=request)
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user