def should_show_entry_state(entry, current_api_id):
    """Returns wether or not entry state should be shown.

    :param entry: Contentful entry.
    :param current_api_id: Current API selected.
    :return: True/False
    """

    return (
        current_api_id == 'cpa' and
        (
            entry.__dict__.get('draft', False) or
            entry.__dict__.get('pending_changes', False)
        )
    )