mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
Add DELETE to the job template survey spec endpoint
This commit is contained in:
parent
681954ab99
commit
62e3b6ad08
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user