mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-05 05:11:48 -05:00
fix delete last label disassociate
* Inherit from mixin first in order to overwrite next inherited class method, unattach. * Also, fix up test and add test to ensure correct inheritance
This commit is contained in:
@@ -2380,7 +2380,7 @@ class JobTemplateNotificationTemplatesSuccessList(SubListCreateAttachDetachAPIVi
|
||||
parent_model = JobTemplate
|
||||
relationship = 'notification_templates_success'
|
||||
|
||||
class JobTemplateLabelList(SubListCreateAttachDetachAPIView, DeleteLastUnattachLabelMixin):
|
||||
class JobTemplateLabelList(DeleteLastUnattachLabelMixin, SubListCreateAttachDetachAPIView):
|
||||
|
||||
model = Label
|
||||
serializer_class = LabelSerializer
|
||||
|
||||
Reference in New Issue
Block a user