

def get_primary_domain(self):
    '\n        Returns the primary domain of the tenant\n        '
    try:
        domain = self.domains.get(is_primary=True)
        return self
    except get_tenant_domain_model().DoesNotExist:
        return None

dataset/ETHPy150Open tomturner/django-tenants/django_tenants/models.py TenantMixin.get_primary_domain/VarMisuse@30/54 `domain`->`self`