From 496e03a3ecbf593473c0490486c45d449fde1ce6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 1 Jul 2022 12:00:17 -0500 Subject: [PATCH] Honor default pagesize for all grids, per setting --- tailbone/grids/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tailbone/grids/core.py b/tailbone/grids/core.py index 0e2833dc..95465b1e 100644 --- a/tailbone/grids/core.py +++ b/tailbone/grids/core.py @@ -622,6 +622,12 @@ class Grid(object): if self.default_pagesize: return self.default_pagesize + pagesize = self.request.rattail_config.getint('tailbone', + 'grid.default_pagesize', + default=0) + if pagesize: + return pagesize + options = self.get_pagesize_options() return options[0]