From 8ad505c9cc498e6878a68376346684aa10d1669d Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 28 Jun 2016 12:27:13 -0400 Subject: [PATCH] Fixed notification template deleting #2674 --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):