Merge pull request #1690 from chrismeyersfsu/fix-labels_disassociate

delete label on last disassociate
This commit is contained in:
Chris Meyers
2016-04-27 13:21:14 -04:00
7 changed files with 219 additions and 7 deletions

View File

@@ -2282,7 +2282,7 @@ class JobTemplateNotifiersSuccessList(SubListCreateAttachDetachAPIView):
parent_model = JobTemplate
relationship = 'notifiers_success'
class JobTemplateLabelList(SubListCreateAttachDetachAPIView):
class JobTemplateLabelList(SubListCreateAttachDetachAPIView, DeleteLastUnattachLabelMixin):
model = Label
serializer_class = LabelSerializer