Honor default pagesize for all grids, per setting

This commit is contained in:
Lance Edgar 2022-07-01 12:00:17 -05:00
parent 7e0e881017
commit 496e03a3ec

View file

@ -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]