def get_primary_domain(self):
        try:
            domain = self.domains.get(is_primary=True)
            return domain
        except get_tenant_domain_model().DoesNotExist:
            return None
Sets the alternates
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/models.py/TenantMixin.get_primary_domain--crossover with--dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo._set_alternates