From e449237d8a90a101690eaa7e3e69804f631704b1 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Wed, 27 Apr 2016 12:07:57 -0400 Subject: [PATCH] move delete last unattach mixin to job template sublabel --- awx/api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index fa4743887b..141655b10b 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -2263,7 +2263,7 @@ class JobTemplateNotifiersSuccessList(SubListCreateAttachDetachAPIView): parent_model = JobTemplate relationship = 'notifiers_success' -class JobTemplateLabelList(SubListCreateAttachDetachAPIView): +class JobTemplateLabelList(SubListCreateAttachDetachAPIView, DeleteLastUnattachLabelMixin): model = Label serializer_class = LabelSerializer @@ -3359,7 +3359,7 @@ class NotificationDetail(RetrieveAPIView): serializer_class = NotificationSerializer new_in_300 = True -class LabelList(ListCreateAPIView, DeleteLastUnattachLabelMixin): +class LabelList(ListCreateAPIView): model = Label serializer_class = LabelSerializer