From ed02540c6e8296120179d7c99709fd9f5c4e4af4 Mon Sep 17 00:00:00 2001 From: Sushil Tiwari Date: Wed, 17 Dec 2025 18:25:28 +0545 Subject: [PATCH] fix(local_units): Disable notifications for superusers --- local_units/tasks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/local_units/tasks.py b/local_units/tasks.py index 1e2783090..32418c8c0 100644 --- a/local_units/tasks.py +++ b/local_units/tasks.py @@ -29,7 +29,6 @@ def send_local_unit_email(local_unit_id: int, new: bool = True): get_local_unit_country_validators(instance) or get_local_unit_region_validators(instance) or get_local_unit_global_validators(instance) - or User.objects.filter(is_superuser=True) ) email_context = get_email_context(instance)