[Django] #36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on a page

13 views
Skip to first unread message

Django

unread,
May 20, 2025, 5:49:20 PM5/20/25
to django-...@googlegroups.com
#36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on
a page
-----------------------------+-----------------------------------------
Reporter: nbelakovski | Type: Bug
Status: new | Component: contrib.admin
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+-----------------------------------------
We prefer to list lots of objects on a page so that Ctrl+F works. It's a
little slow but we like it. Most of our models don't even have 1000 rows,
but at 1000 results on a page the text in the actions form at the top of
the admin panel list page shows "0 of NaN selected". If I bring
list_per_page down to 999, it's back to normal. Oddly it appears to flash
with "1000" before reverting to NaN, and it's not some weird css thing,
the text is literally NaN.

999 works for us for now but this seems like a silly bug that's better
fixed that worked around.
--
Ticket URL: <https://code.djangoproject.com/ticket/36403>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 20, 2025, 6:21:55 PM5/20/25
to django-...@googlegroups.com
#36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on
a page
-------------------------------+--------------------------------------
Reporter: nbelakovski | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "Screenshot 2025-05-21 at 7.20.40 AM.png" added.

Django

unread,
May 20, 2025, 6:23:00 PM5/20/25
to django-...@googlegroups.com
#36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on
a page
-------------------------------+--------------------------------------
Reporter: nbelakovski | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Antoliny):

Thank you for reporting the issue.
I wasn't able to reproduce the bug in my environment.
Could you please share more details about your environment or steps to
reproduce the issue?
[[Image(Screenshot 2025-05-21 at 7.20.40 AM)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36403#comment:1>

Django

unread,
May 20, 2025, 6:24:31 PM5/20/25
to django-...@googlegroups.com
#36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on
a page
-------------------------------+--------------------------------------
Reporter: nbelakovski | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* cc: Antoliny (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/36403#comment:2>

Django

unread,
May 21, 2025, 7:38:49 AM5/21/25
to django-...@googlegroups.com
#36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on
a page
-------------------------------+--------------------------------------
Reporter: nbelakovski | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Sarah Boyce):

* resolution: => worksforme
* status: new => closed

--
Ticket URL: <https://code.djangoproject.com/ticket/36403#comment:3>

Django

unread,
May 22, 2025, 10:00:35 AM5/22/25
to django-...@googlegroups.com
#36403: Admin actions displays "0 of NaN selected" when there are >=1000 results on
a page
-------------------------------+--------------------------------------
Reporter: nbelakovski | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by nbelakovski):

Yea unfortunately I was unable to reproduce with a fresh app as well. I
tried removing a lot of things from my existing project, including custom
admin site configurations, 3rd party apps, etc., and it was still there,
but unfortunately I don't have time to dig to the bottom of this at the
moment. Thanks for taking a look anyway.
--
Ticket URL: <https://code.djangoproject.com/ticket/36403#comment:4>
Reply all
Reply to author
Forward
0 new messages