mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
Fix pagination when pagination.per_page
is ""
This commit is contained in:
parent
6c51b89502
commit
5e92dac4ac
@ -87,7 +87,7 @@ def get_paginate_count(request):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if request.user.is_authenticated:
|
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(per_page)
|
||||||
|
|
||||||
return _max_allowed(config.PAGINATE_COUNT)
|
return _max_allowed(config.PAGINATE_COUNT)
|
||||||
|
Loading…
Reference in New Issue
Block a user