Merge pull request #4585 from ryanpetrello/system-job-creation

prevent POST on /api/v2/system_jobs/

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-08-26 13:50:45 +00:00 committed by GitHub
commit 9baa9eee96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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