delete label on last disassociate

This commit is contained in:
Chris Meyers
2016-04-25 17:14:09 -04:00
parent 16744e6b78
commit 2f18a9f2c1
5 changed files with 154 additions and 6 deletions

View File

@@ -3359,7 +3359,7 @@ class NotificationDetail(RetrieveAPIView):
serializer_class = NotificationSerializer
new_in_300 = True
class LabelList(ListCreateAPIView):
class LabelList(ListCreateAPIView, DeleteLastUnattachLabelMixin):
model = Label
serializer_class = LabelSerializer