diff --git a/awx/api/views.py b/awx/api/views.py index 684b2e1cc1..59f7adb745 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -3462,7 +3462,7 @@ class NotificationTemplateDetail(RetrieveUpdateDestroyAPIView): if obj.notifications.filter(status='pending').exists(): return Response({"error": "Delete not allowed while there are pending notifications"}, status=status.HTTP_405_METHOD_NOT_ALLOWED) - return resp + return super(NotificationTemplateDetail, self).delete(request, *args, **kwargs) class NotificationTemplateTest(GenericAPIView):