mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -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()
|
||||
return Response()
|
||||
|
||||
def delete(self, request, *args, **kwargs):
|
||||
obj = self.get_object()
|
||||
obj.survey_spec = {}
|
||||
obj.save()
|
||||
return Response()
|
||||
|
||||
class JobTemplateActivityStreamList(SubListAPIView):
|
||||
|
||||
model = ActivityStream
|
||||
|
||||
Reference in New Issue
Block a user