Re: [Django] #35452: Unexpected results when Paginator's orphans is equal or higher than the page size

28 views
Skip to first unread message

Django

unread,
May 15, 2024, 10:17:19 PM5/15/24
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: pagination, | Triage Stage: Accepted
paginator |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Strapchay):

I do not have a specific use case for having an orphan greater than the
page size. I was only trying to get the results needed from a test case
and needed the data gotten back to not break the ui context of amount to
fit into the screen and created a base test case which was how I noticed
the issue in the first place. I think the first one would be great. Also
why not have a warning or an exception raised when the orphan specified is
more than the page_size?, or what's your thought on that?
--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 31, 2024, 11:49:09 AM5/31/24
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: Ajay
Type: | Singh
Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: pagination, | Triage Stage: Accepted
paginator |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ajay Singh):

* owner: nobody => Ajay Singh
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:4>

Django

unread,
Jan 12, 2025, 3:24:03 AM1/12/25
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: pagination, | Triage Stage: Accepted
paginator |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by wookkl):

* owner: Ajay Singh => wookkl

--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:5>

Django

unread,
Jan 30, 2025, 7:25:20 AM1/30/25
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: pagination, | Triage Stage: Accepted
paginator |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by wookkl):

* has_patch: 0 => 1

Comment:

PR [https://github.com/django/django/pull/19124]
--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:6>

Django

unread,
Feb 25, 2025, 8:42:27 AM2/25/25
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: pagination, | Triage Stage: Accepted
paginator |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:7>

Django

unread,
Mar 24, 2025, 6:01:44 AM3/24/25
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: pagination, | Triage Stage: Ready for
paginator | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:8>

Django

unread,
Mar 25, 2025, 7:04:25 AM3/25/25
to django-...@googlegroups.com
#35452: Unexpected results when Paginator's orphans is equal or higher than the
page size
-------------------------------------+-------------------------------------
Reporter: Strapchay | Owner: wookkl
Type: | Status: closed
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: pagination, | Triage Stage: Ready for
paginator | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"334677ad576400a3b74da3f89ac70314235c1876" 334677ad]:
{{{#!CommitTicketReference repository=""
revision="334677ad576400a3b74da3f89ac70314235c1876"
Fixed #35452 -- Deprecated orphans being more than or equal to page_size
in pagination.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35452#comment:9>
Reply all
Reply to author
Forward
0 new messages