mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Fix pagination when pagination.per_page
is ""
This commit is contained in:
parent
4b2f26a800
commit
e9d23349d6
@ -87,7 +87,7 @@ def get_paginate_count(request):
|
||||
pass
|
||||
|
||||
if request.user.is_authenticated:
|
||||
per_page = request.user.config.get('pagination.per_page', config.PAGINATE_COUNT)
|
||||
per_page = request.user.config.get('pagination.per_page') or config.PAGINATE_COUNT
|
||||
return _max_allowed(per_page)
|
||||
|
||||
return _max_allowed(config.PAGINATE_COUNT)
|
||||
|
Loading…
Reference in New Issue
Block a user