Fix how we detect grid settings presence in user session
..in case grid has filter settings only
This commit is contained in:
parent
5b35c3dd3b
commit
d93cb4f07b
|
@ -586,7 +586,7 @@ class Grid(object):
|
||||||
for key in ['page', 'sortkey']:
|
for key in ['page', 'sortkey']:
|
||||||
if 'grid.{}.{}'.format(self.key, key) in self.request.session:
|
if 'grid.{}.{}'.format(self.key, key) in self.request.session:
|
||||||
return True
|
return True
|
||||||
return False
|
return any([key.startswith('grid.{}.filter'.format(self.key)) for key in self.request.session])
|
||||||
|
|
||||||
def get_setting(self, source, settings, key, normalize=lambda v: v, default=None):
|
def get_setting(self, source, settings, key, normalize=lambda v: v, default=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue