def should_attach_entry_state(current_api_id, session):
    """Returns wether or not entry state should be attached

    :param current_api_id: Current API selected.
    :param session: Current session data.
    :return: True/False
    """

    return (
        current_api_id == 'cpa' and
        bool(session.get('editorial_features', None))
    )