US #55: Custom fields - Send email notifications

remotes/origin/enhancement/email-actions
David Barragán Merino 2015-03-04 12:58:46 +01:00
parent d56ee49064
commit 5dfd88274b
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ from taiga.base import response
from taiga.projects.mixins.ordering import BulkUpdateOrderMixin from taiga.projects.mixins.ordering import BulkUpdateOrderMixin
from taiga.projects.history.mixins import HistoryResourceMixin from taiga.projects.history.mixins import HistoryResourceMixin
from taiga.projects.notifications.mixins import WatchedResourceMixin
from taiga.projects.occ.mixins import OCCResourceMixin from taiga.projects.occ.mixins import OCCResourceMixin
from . import models from . import models
@ -73,7 +74,8 @@ class IssueCustomAttributeViewSet(BulkUpdateOrderMixin, ModelCrudViewSet):
# Custom Attributes Values ViewSets # Custom Attributes Values ViewSets
####################################################### #######################################################
class BaseCustomAttributesValuesViewSet(OCCResourceMixin, HistoryResourceMixin, ModelUpdateRetrieveViewSet): class BaseCustomAttributesValuesViewSet(OCCResourceMixin, HistoryResourceMixin, WatchedResourceMixin,
ModelUpdateRetrieveViewSet):
def get_object_for_snapshot(self, obj): def get_object_for_snapshot(self, obj):
return getattr(obj, self.content_object) return getattr(obj, self.content_object)