(domain, checkpoint)
return (
        domain_obj is not None and
        domain_obj.date_created is not None and
        domain_obj.date_created > checkpoint
    )
Return true if domain was created after checkpoint

    :param domain: Domain name (string).
    :param checkpoint: datetime object.
Return true if domain was created after checkpoint
Return true if domain was created after checkpoint
def was_domain_created_after(domain, checkpoint):
    """
    Return true if domain was created after checkpoint

    :param domain: Domain name (string).
    :param checkpoint: datetime object.
    """
    from corehq.apps.domain.models import Domain
    domain_obj = Domain.get_by_name(domain)
    return (
        domain_obj is not None and
        domain_obj.date_created is not None and
        domain_obj.date_created > checkpoint
    )
def was_domain_created_after ( domain , checkpoint ) : from corehq . apps . domain . models import Domain domain_obj = Domain . get_by_name ( domain ) return ( domain_obj is not None and domain_obj . date_created is not None and domain_obj . date_created > checkpoint )