'Given a URL return a tuple of:
(previous page, current page, next page, previous url, next url)'

def get_pages(self, url):

    request = Request(factory.get(url))
    queryset = self.pagination.paginate_queryset(self.queryset, request)
    current = [item[u'created'] for item in queryset]
    next_url = self.pagination.get_next_link()
    previous_url = self.pagination.get_previous_link()
    if (next_url is not None):
        request = Request(factory.get(next_url))
        queryset = self.pagination.paginate_queryset(self.queryset, request)
        next = [item[u'created'] for item in queryset]
    else:
        next = None
    if (previous_url is not None):
        request = Request(factory.get(previous_url))
        queryset = self.pagination.paginate_queryset(self.queryset, request)
        previous = [item[u'created'] for item in queryset]
    else:
        previous = None
    return (previous, current, next, previous_url, next_url)
