mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Add organization to wfjt serializer related_fields.
This commit is contained in:
parent
cf8f12c1f0
commit
87bf7d22e1
@ -2218,6 +2218,8 @@ class WorkflowJobTemplateSerializer(LabelsListMixin, UnifiedJobTemplateSerialize
|
||||
notification_templates_error = reverse('api:workflow_job_template_notification_templates_error_list', args=(obj.pk,)),
|
||||
survey_spec = reverse('api:workflow_job_template_survey_spec', args=(obj.pk,)),
|
||||
))
|
||||
if obj.organization:
|
||||
res['organization'] = reverse('api:organization_detail', args=(obj.organization.pk,))
|
||||
return res
|
||||
|
||||
def validate_extra_vars(self, value):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user