﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35452	Unexpected results when Paginator's orphans is equal or higher than the page size	Strapchay	wookkl	"The documentation  https://docs.djangoproject.com/en/4.2/ref/paginator/#django.core.paginator.Paginator.orphans says the orphan would append values which are orphans which don't fit into the context of the per_page of the paginator to the last_page of the paginator if the remaining values is less than or equal to the specified orphan value. However, there seems to be a logical error in how it is implemented. The orphan only applies if the specified orphan value is exactly the value specified and not lesser. And also in situations where the page_size specified is lesser than the orphans, the values of the next page including the orphan are instead added to the intial page which disregards the pagination.

So in a situation where i specify a page_size of 2 and have 7 queryset data and specified the orphans to be 3, it returns only a single page making it returned value 7 and similar if the queryset data is 5 and the orphans is 3, however, if i specify the orphans to be 1 the pagination behaves as expected"	Cleanup/optimization	closed	Core (Other)	dev	Normal	fixed	pagination, paginator		Ready for checkin	1	0	0	0	0	0
