Implement workflow JT schedule.

This commit is contained in:
Aaron Tan
2016-11-07 11:37:11 -05:00
parent 7167fd7c6b
commit 45df199703
3 changed files with 13 additions and 1 deletions

View File

@@ -2827,6 +2827,17 @@ class WorkflowJobTemplateJobsList(SubListAPIView):
relationship = 'jobs'
parent_key = 'workflow_job_template'
class WorkflowJobTemplateSchedulesList(SubListCreateAttachDetachAPIView):
view_name = _("Workflow Job Template Schedules")
model = Schedule
serializer_class = ScheduleSerializer
parent_model = WorkflowJobTemplate
relationship = 'schedules'
parent_key = 'unified_job_template'
new_in_310 = True
# TODO:
class WorkflowJobList(ListCreateAPIView):