#36403 closed Bug (worksforme)
Admin actions displays "0 of NaN selected" when there are >=1000 results on a page
Reported by: | nbelakovski | Owned by: | |
---|---|---|---|
Component: | contrib.admin | Version: | 5.1 |
Severity: | Normal | Keywords: | |
Cc: | Antoliny | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (5)
by , 3 months ago
Attachment: | Screenshot 2025-05-21 at 7.20.40 AM.png added |
---|
comment:2 by , 3 months ago
Cc: | added |
---|
comment:3 by , 3 months ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:4 by , 3 months ago
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.
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?