(cls, domain)
Get or create the configuration associated with the given domain's account.
        Note that the domain may be the source domain, one of the controlled domains,
        or another domain in the account that does not use enterprise permissions.
Get or create the configuration associated with the given domain's account.
        Note that the domain may be the source domain, one of the controlled domains,
        or another domain in the account that does not use enterprise permissions.
Get or create the configuration associated with the given domain s account . Note that the domain may be the source domain one of the controlled domains or another domain in the account that does not use enterprise permissions .
def get_by_domain(cls, domain):
        """
        Get or create the configuration associated with the given domain's account.
        Note that the domain may be the source domain, one of the controlled domains,
        or another domain in the account that does not use enterprise permissions.
        """
        account = BillingAccount.get_account_by_domain(domain)
        try:
            return cls.objects.get(account=account)
        except cls.DoesNotExist:
            return cls(account=account)
def get_by_domain ( cls , domain ) : account = BillingAccount . get_account_by_domain ( domain ) try : return cls . objects . get ( account = account ) except cls . DoesNotExist : return cls ( account = account )