Merge pull request #4590 from ryanpetrello/workflow-job-creation

prevent POST on /api/v2/workflow_jobs/

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-08-26 19:44:04 +00:00
committed by GitHub

View File

@@ -3287,7 +3287,7 @@ class WorkflowJobTemplateActivityStreamList(SubListAPIView):
Q(workflow_job_template_node__workflow_job_template=parent)).distinct()
class WorkflowJobList(ListCreateAPIView):
class WorkflowJobList(ListAPIView):
model = models.WorkflowJob
serializer_class = serializers.WorkflowJobListSerializer