mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 05:47:38 -02:30
Merge pull request #3728 from AlanCoding/workflow_labels
Workflow Labels
This commit is contained in:
@@ -2728,6 +2728,11 @@ class WorkflowJobTemplateDetail(RetrieveUpdateDestroyAPIView):
|
||||
serializer_class = WorkflowJobTemplateSerializer
|
||||
always_allow_superuser = False
|
||||
|
||||
|
||||
class WorkflowJobTemplateLabelList(JobTemplateLabelList):
|
||||
parent_model = WorkflowJobTemplate
|
||||
|
||||
|
||||
# TODO:
|
||||
class WorkflowJobTemplateLaunch(GenericAPIView):
|
||||
|
||||
@@ -2885,6 +2890,9 @@ class JobLabelList(SubListAPIView):
|
||||
relationship = 'labels'
|
||||
parent_key = 'job'
|
||||
|
||||
class WorkflowJobLabelList(JobLabelList):
|
||||
parent_model = WorkflowJob
|
||||
|
||||
class JobActivityStreamList(SubListAPIView):
|
||||
|
||||
model = ActivityStream
|
||||
|
||||
Reference in New Issue
Block a user