mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Merge pull request #2679 from anoek/2636
Fixed notification template deleting
This commit is contained in:
commit
eb65172087
@ -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):
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user