modified: netbox_dns_bridge/notify_handler.py

modified:   netbox_dns_bridge/signals/netbox_dns_zones.py
Some code cleanup
This commit is contained in:
Sven Luthi committed 2026-07-20 15:21:14 +02:00
1 parent 11ea9a6f1a
commit b4ab5596d6
2 files changed
+12 -16

No files matched your search

@@ -52,12 +52,12 @@ def zone_post_save(sender, instance, created, **kwargs):
catzm.increment_soa_serial()
if SETTINGS.get("notify_clients", False):
notify_handler.schedule(zone)
notify_handler.schedule_client_notify(zone)
# Send a NOTIFY to the zone's own nameservers when its SOA serial changed
# and the feature is enabled — globally or per zone via a custom field.
if soa_serial_changed and _notify_ns_enabled(zone):
notify_handler.schedule_notify_ns(zone)
notify_handler.schedule_ns_notify(zone)
transaction.on_commit(_on_commit)