1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Add DELETE to the job template survey spec endpoint

This commit is contained in:
Matthew Jones 2014-10-09 13:46:03 -04:00
parent 681954ab99
commit 62e3b6ad08

View File

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