def reftrack_object_data(rt, role):
    """Return the reftrack for REFTRACK_OBJECT_ROLE

    :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data
    :type rt: :class:`jukeboxcore.reftrack.Reftrack`
    :param role: item data role
    :type role: QtCore.Qt.ItemDataRole
    :returns: data for the id
    :rtype: depending on the role
    :raises: None
    """
    if role == QtCore.Qt.DisplayRole:
        return str(rt)
    if role == REFTRACK_OBJECT_ROLE:
        return rt