No notify hidden (ordering) changes
parent
1101c5a719
commit
d9f48b0753
|
@ -207,6 +207,9 @@ def _make_template_mail(name:str):
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def send_notifications(obj, *, history):
|
def send_notifications(obj, *, history):
|
||||||
|
if history.is_hidden:
|
||||||
|
return None
|
||||||
|
|
||||||
key = make_key_from_model_object(obj)
|
key = make_key_from_model_object(obj)
|
||||||
owner = User.objects.get(pk=history.user["pk"])
|
owner = User.objects.get(pk=history.user["pk"])
|
||||||
notification, created = (HistoryChangeNotification.objects.select_for_update()
|
notification, created = (HistoryChangeNotification.objects.select_for_update()
|
||||||
|
|
Loading…
Reference in New Issue