From 4887ca55a9ea3529e1f82586c957669b2a93917a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Thu, 24 Apr 2014 12:54:01 +0200 Subject: [PATCH] Fix a bug: Sent notifications when a user only add a comment --- taiga/base/notifications/api.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/taiga/base/notifications/api.py b/taiga/base/notifications/api.py index b2fdfbf3..62928203 100644 --- a/taiga/base/notifications/api.py +++ b/taiga/base/notifications/api.py @@ -34,12 +34,9 @@ class NotificationSenderMixin(object): self.notification_service.send_notification_email(self.create_notification_template, users=users, context=context) else: - changed_fields = obj.get_changed_fields_list(self.request.DATA) - - if changed_fields: - context["changed_fields"] = changed_fields - self.notification_service.send_notification_email(self.update_notification_template, - users=users, context=context) + context["changed_fields"] = obj.get_changed_fields_list(self.request.DATA) + self.notification_service.send_notification_email(self.update_notification_template, + users=users, context=context) def post_save(self, obj, created=False): super().post_save(obj, created)