mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Add DELETE to the job template survey spec endpoint
This commit is contained in:
@@ -1472,6 +1472,12 @@ class JobTemplateSurveySpec(GenericAPIView):
|
|||||||
obj.save()
|
obj.save()
|
||||||
return Response()
|
return Response()
|
||||||
|
|
||||||
|
def delete(self, request, *args, **kwargs):
|
||||||
|
obj = self.get_object()
|
||||||
|
obj.survey_spec = {}
|
||||||
|
obj.save()
|
||||||
|
return Response()
|
||||||
|
|
||||||
class JobTemplateActivityStreamList(SubListAPIView):
|
class JobTemplateActivityStreamList(SubListAPIView):
|
||||||
|
|
||||||
model = ActivityStream
|
model = ActivityStream
|
||||||
|
|||||||
Reference in New Issue
Block a user