From 62e3b6ad084fa6c46d3026560b5617cfa1189f3f Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 9 Oct 2014 13:46:03 -0400 Subject: [PATCH] Add DELETE to the job template survey spec endpoint --- awx/api/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/awx/api/views.py b/awx/api/views.py index 8413b51d5d..7ea673b40e 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1472,6 +1472,12 @@ class JobTemplateSurveySpec(GenericAPIView): obj.save() return Response() + def delete(self, request, *args, **kwargs): + obj = self.get_object() + obj.survey_spec = {} + obj.save() + return Response() + class JobTemplateActivityStreamList(SubListAPIView): model = ActivityStream