No notify hidden (ordering) changes

remotes/origin/enhancement/email-actions
Jesús Espino 2014-12-02 18:09:27 +01:00 committed by David Barragán Merino
parent 1101c5a719
commit d9f48b0753
1 changed files with 3 additions and 0 deletions

View File

@ -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()