mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
move delete last unattach mixin to job template sublabel
This commit is contained in:
parent
1925742da1
commit
e449237d8a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user