Merge pull request #3891 from jangsutsr/3517_implement_workflow_schedules

Implement workflow JT schedule
This commit is contained in:
Aaron Tan
2016-11-07 16:31:03 -05:00
committed by GitHub
4 changed files with 14 additions and 2 deletions
+11
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):