Exemple #1
0
 def delete(self, *args, **kwargs):
     if self.domain_set.exists():
         raise ValidationError(
             "Domains exist in this SOA's zone. Delete "
             "those domains or remove them from this zone before "
             "deleting this SOA.")
     Task.schedule_all_dns_rebuild(self)
     super(SOA, self).delete(*args, **kwargs)
Exemple #2
0
 def schedule_full_rebuild(self, commit=True):
     Task.schedule_all_dns_rebuild(self)
     self.dirty = True
     if commit:
         self.save()