The premier source of truth powering network automation. Open source under Apache 2. Public demo: https://demo.netbox.dev
15.15k
stars
2.46k
forks
source link
Clearing page length user preference breaks pagination #16173
Closed
devon-mar closed 1 week ago
Deployment Type
Self-hosted
NetBox Version
v4.0.2
Python Version
3.10
Steps to Reproduce
/user/preferences/
and click the "X" onPage length
.Save
.Expected Behavior
The page should load without an error.
Observed Behavior
I believe this is because the
paginate.per_page
preference is an empty string:Therefore,
per_page
is set to""
instead ofconfig.PAGINATE_COUNT
: https://github.com/netbox-community/netbox/blob/4b2f26a8002a8f01e186211c648768892cc199c8/netbox/utilities/paginator.py#L90