'Provide a view for a list of cgsnapshots.'

def _list_view(self, func, request, cgsnapshots):

    cgsnapshots_list = [func(request, cgsnapshot)['cgsnapshot'] for cgsnapshot in cgsnapshots]
    cgsnapshots_dict = dict(cgsnapshots=cgsnapshots_list)
    return cgsnapshots_dict
