mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Merge pull request #2266 from AlanCoding/no_cs_v1
Do not show create_schedule link in v1
This commit is contained in:
commit
30e2207960
@ -3136,6 +3136,7 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
|
||||
)
|
||||
except ObjectDoesNotExist:
|
||||
pass
|
||||
if self.version > 1:
|
||||
res['create_schedule'] = self.reverse('api:job_create_schedule', kwargs={'pk': obj.pk})
|
||||
res['relaunch'] = self.reverse('api:job_relaunch', kwargs={'pk': obj.pk})
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user