Ejemplo n.º 1
0
 def perform_destroy(self, instance: models.Domain):
     with PDNSChangeTracker():
         instance.delete()
     if instance.is_locally_registrable:
         parent_domain = models.Domain.objects.get(name=instance.parent_domain_name)
         with PDNSChangeTracker():
             parent_domain.update_delegation(instance)
Ejemplo n.º 2
0
 def perform_destroy(self, instance: Domain):
     with PDNSChangeTracker():
         instance.delete()
     parent_domain_name = instance.partition_name()[1]
     if parent_domain_name in settings.LOCAL_PUBLIC_SUFFIXES:
         parent_domain = Domain.objects.get(name=parent_domain_name)
         with PDNSChangeTracker():
             parent_domain.update_delegation(instance)