From 5dfd88274b8e227def1317c87847c0c64e18e18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 4 Mar 2015 12:58:46 +0100 Subject: [PATCH] US #55: Custom fields - Send email notifications --- taiga/projects/custom_attributes/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/taiga/projects/custom_attributes/api.py b/taiga/projects/custom_attributes/api.py index 2a53d854..c93bb790 100644 --- a/taiga/projects/custom_attributes/api.py +++ b/taiga/projects/custom_attributes/api.py @@ -24,6 +24,7 @@ from taiga.base import response from taiga.projects.mixins.ordering import BulkUpdateOrderMixin from taiga.projects.history.mixins import HistoryResourceMixin +from taiga.projects.notifications.mixins import WatchedResourceMixin from taiga.projects.occ.mixins import OCCResourceMixin from . import models @@ -73,7 +74,8 @@ class IssueCustomAttributeViewSet(BulkUpdateOrderMixin, ModelCrudViewSet): # Custom Attributes Values ViewSets ####################################################### -class BaseCustomAttributesValuesViewSet(OCCResourceMixin, HistoryResourceMixin, ModelUpdateRetrieveViewSet): +class BaseCustomAttributesValuesViewSet(OCCResourceMixin, HistoryResourceMixin, WatchedResourceMixin, + ModelUpdateRetrieveViewSet): def get_object_for_snapshot(self, obj): return getattr(obj, self.content_object)