from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver

from dnsmanager.models import Zone

from .handlers import save_zone, delete_zone


@receiver(post_save, sender=Zone)
def zone_saved(sender, instance, created, **kwargs):
    return save_zone(instance, created)


@receiver(post_delete, sender=Zone)
def zone_deleted(sender, instance, **kwargs):
    return delete_zone(instance)
@@ -33,19 +33,8 @@
 port
- post_save,
  pos
@@ -42,16 +42,16 @@
 _delete%0A
+
 from dja
@@ -114,16 +114,71 @@
 ort Zone
+%0Afrom dnsmanager.signals import zone_fully_saved_signal
 %0A%0Afrom .
@@ -232,30 +232,31 @@
 ver(
-post_save, sender=Zone
+zone_fully_saved_signal
 )%0Ade

use zone_fully_saved_signal