From a949cc33f1681f593174c69b4757d91f8eecd899 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 23 Aug 2019 15:10:14 -0400 Subject: [PATCH] prevent POST on /api/v2/system_jobs/ SystemJobs should only be created by launching a SystemJobTemplate --- awx/api/views/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py index 1c57c35bd8..7741830789 100644 --- a/awx/api/views/__init__.py +++ b/awx/api/views/__init__.py @@ -3975,7 +3975,7 @@ class AdHocCommandNotificationsList(SubListAPIView): search_fields = ('subject', 'notification_type', 'body',) -class SystemJobList(ListCreateAPIView): +class SystemJobList(ListAPIView): model = models.SystemJob serializer_class = serializers.SystemJobListSerializer