From 6a1acd168495e638481a35c9e7e0269522ad9b36 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 4 Oct 2022 21:17:16 +0100 Subject: [PATCH] Decrease page size Infinite scroll makes this much easier --- website/search/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search/models.py b/website/search/models.py index 9459626..9c3e8a9 100644 --- a/website/search/models.py +++ b/website/search/models.py @@ -19,7 +19,7 @@ class SearchPage(RoutablePageMixin, BaseContentPage): max_count = 1 subpage_types: list = [] parent_page_types = ["home.HomePage"] - PAGE_SIZE = 15 + PAGE_SIZE = 10 # Exclude singleton pages from search results EXCLUDED_PAGE_TYPES = {page for page in get_page_models() if page.max_count == 1}