Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#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)

Screenshot 2025-05-21 at 7.20.40 AM.png (94.8 KB ) - added by Antoliny 3 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Antoliny, 3 months ago

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?

Last edited 3 months ago by Antoliny (previous) (diff)

comment:2 by Antoliny, 3 months ago

Cc: Antoliny added

comment:3 by Sarah Boyce, 3 months ago

Resolution: worksforme
Status: newclosed

comment:4 by nbelakovski, 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.

Note: See TracTickets for help on using tickets.
Back to Top