Honor default pagesize for all grids, per setting
This commit is contained in:
parent
7e0e881017
commit
496e03a3ec
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue