From d9f48b07538304b9cbc49aed654d7a7345602d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 2 Dec 2014 18:09:27 +0100 Subject: [PATCH] No notify hidden (ordering) changes --- taiga/projects/notifications/services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taiga/projects/notifications/services.py b/taiga/projects/notifications/services.py index ecd3a2e8..a278cee2 100644 --- a/taiga/projects/notifications/services.py +++ b/taiga/projects/notifications/services.py @@ -207,6 +207,9 @@ def _make_template_mail(name:str): @transaction.atomic def send_notifications(obj, *, history): + if history.is_hidden: + return None + key = make_key_from_model_object(obj) owner = User.objects.get(pk=history.user["pk"]) notification, created = (HistoryChangeNotification.objects.select_for_update()