mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
add new SNAPSHOTS_PER_PAGE pagination limit config
This commit is contained in:
parent
3e96871386
commit
9cd4ba38f0
3 changed files with 5 additions and 3 deletions
|
@ -22,6 +22,7 @@ from ..config import (
|
|||
PUBLIC_ADD_VIEW,
|
||||
VERSION,
|
||||
FOOTER_INFO,
|
||||
SNAPSHOTS_PER_PAGE,
|
||||
)
|
||||
from main import add
|
||||
from ..util import base_url, ansi_to_html
|
||||
|
@ -94,7 +95,7 @@ class SnapshotView(View):
|
|||
class PublicIndexView(ListView):
|
||||
template_name = 'public_index.html'
|
||||
model = Snapshot
|
||||
paginate_by = 100
|
||||
paginate_by = SNAPSHOTS_PER_PAGE
|
||||
ordering = ['title']
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue