diff --git a/awx/api/urls/ad_hoc_command_event.py b/awx/api/urls/ad_hoc_command_event.py index 20d3dc024d..a38d4fc165 100644 --- a/awx/api/urls/ad_hoc_command_event.py +++ b/awx/api/urls/ad_hoc_command_event.py @@ -3,11 +3,10 @@ from django.conf.urls import url -from awx.api.views import AdHocCommandEventList, AdHocCommandEventDetail +from awx.api.views import AdHocCommandEventDetail urls = [ - url(r'^$', AdHocCommandEventList.as_view(), name='ad_hoc_command_event_list'), url(r'^(?P[0-9]+)/$', AdHocCommandEventDetail.as_view(), name='ad_hoc_command_event_detail'), ] diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py index a781057671..b0cb4aa86a 100644 --- a/awx/api/views/__init__.py +++ b/awx/api/views/__init__.py @@ -3906,18 +3906,6 @@ class AdHocCommandRelaunch(GenericAPIView): return Response(data, status=status.HTTP_201_CREATED, headers=headers) -class AdHocCommandEventList(NoTruncateMixin, ListAPIView): - - model = models.AdHocCommandEvent - serializer_class = serializers.AdHocCommandEventSerializer - search_fields = ('stdout',) - - def get_queryset(self): - adhoc = self.get_parent_object() - self.check_parent_access(adhoc) - return adhoc.get_event_queryset() - - class AdHocCommandEventDetail(RetrieveAPIView): model = models.AdHocCommandEvent