def __init__(self, *args, **kwargs):
    self.context = kwargs.pop('context', None)
super(CustomLazyPaginator, self).__init__(*args, **kwargs)
How to do result post-processing before rendering with django endless-pagination?