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:
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…
Reference in New Issue
Block a user