def get_last_item_from_previous_page(self):
    if self.has_prev:
        return self.query[(self.offset - 1)]
    return None
def get_last_item_from_previous_page(self):
    if self.has_prev:
        return self.query[(self.offset - 1)]
    return None