'Provide a string representation of the QuerySet'

def __repr__(self):

    if self._iter:
        return '..    queryset    mid-iteration    ..'
    self._populate_cache()
    data = self._result_cache[:(REPR_OUTPUT_SIZE + 1)]
    if (len(data) > REPR_OUTPUT_SIZE):
        data[(-1)] = '...(remaining    elements    truncated)...'
    return repr(data)
