@property
    def root_domain(self):
        try:
            return self.domain_set.get(
                ~Q(master_domain__soa=F('soa')), soa__isnull=False
            )
        except __HOLE__:
            return None
dataset/ETHPy150Open mozilla/inventory/mozdns/soa/models.py/SOA.root_domain