def get_data_from_context(context):
    try:
        return context['endless']
    except KeyError:
        raise exceptions.PaginationError(
            'Cannot find endless data in context.')
Get the django paginator data object from the given *context*.
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/utils.py/get_data_from_context