I'm using Django 2.1 I'm trying to iterate over a queryset using paginator. For some reason it looks like every iteration the pages content is different. for example on first iteration the first page contains some item, and in the next iteration, that item is now on the second page.
This is how I'm using it:
items_qs = Item.objects.all().filter(
all_items_paginator = Paginator(items_qs, 1)
for page_number in all_items_paginator.page_range:
page = all_items_paginator.page(page_number)
items_ids_list = [item.id for item in page.object_list]