def check_if_domain_exists(name, extra_checks=None):
    dtypes = events.raiseQueryEvent('CheckDomainName')
    if extra_checks is not None:
        dtypes = extra_checks + dtypes
    for dtype, label in dtypes:
        if dtype.objects.filter(name=name).exists():
            return label
    return None
Returns a single instance matching this query, optionally with additional filter kwargs.
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/lib.py/check_if_domain_exists--crossover with--dataset/ETHPy150Open datastax/python-driver/cassandra/cqlengine/query.py/AbstractQuerySet.get