mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 20:49:24 -02:30
move delete last unattach mixin to job template sublabel
This commit is contained in:
@@ -2263,7 +2263,7 @@ class JobTemplateNotifiersSuccessList(SubListCreateAttachDetachAPIView):
|
|||||||
parent_model = JobTemplate
|
parent_model = JobTemplate
|
||||||
relationship = 'notifiers_success'
|
relationship = 'notifiers_success'
|
||||||
|
|
||||||
class JobTemplateLabelList(SubListCreateAttachDetachAPIView):
|
class JobTemplateLabelList(SubListCreateAttachDetachAPIView, DeleteLastUnattachLabelMixin):
|
||||||
|
|
||||||
model = Label
|
model = Label
|
||||||
serializer_class = LabelSerializer
|
serializer_class = LabelSerializer
|
||||||
@@ -3359,7 +3359,7 @@ class NotificationDetail(RetrieveAPIView):
|
|||||||
serializer_class = NotificationSerializer
|
serializer_class = NotificationSerializer
|
||||||
new_in_300 = True
|
new_in_300 = True
|
||||||
|
|
||||||
class LabelList(ListCreateAPIView, DeleteLastUnattachLabelMixin):
|
class LabelList(ListCreateAPIView):
|
||||||
|
|
||||||
model = Label
|
model = Label
|
||||||
serializer_class = LabelSerializer
|
serializer_class = LabelSerializer
|
||||||
|
|||||||
Reference in New Issue
Block a user