1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add PAGINATE_COUNT, MAX_PAGE_SIZE

This commit is contained in:
jeremystretch
2021-10-26 11:39:39 -04:00
parent 94804fecd8
commit 64d8512fc3
9 changed files with 62 additions and 58 deletions

View File

@@ -36,7 +36,7 @@
{% endfor %}
<div class="input-group input-group-sm">
<select name="per_page" class="form-select per-page">
{% for n in settings.PER_PAGE_DEFAULTS %}
{% for n in page.paginator.get_page_lengths %}
<option value="{{ n }}"{% if page.paginator.per_page == n %} selected="selected"{% endif %}>{{ n }}</option>
{% endfor %}
</select>