def find_organization(session, name):
    """Find an organization.

    Find an organization by its `name` using the given `session`.
    When the organization does not exist the function will
    return `None`.

    :param session: database session
    :param name: name of the organization to find

    :returns: an organization object; `None` when the organization
        does not exist
    """
    organization = session.query(Organization). \
        filter(Organization.name == name).first()

    return organization
Find an organization.

    Find an organization by its `name` using the given `session`.
    When the organization does not exist the function will
    return `None`.

    :param session: database session
    :param name: name of the organization to find

    :returns: an organization object; `None` when the organization
        does not exist