From d93cb4f07b16073a391d6258afcc3b6598116e9c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 1 Aug 2017 14:38:09 -0500 Subject: [PATCH] Fix how we detect grid settings presence in user session ..in case grid has filter settings only --- tailbone/grids/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/grids/core.py b/tailbone/grids/core.py index e8c963a6..fbe50bb9 100644 --- a/tailbone/grids/core.py +++ b/tailbone/grids/core.py @@ -586,7 +586,7 @@ class Grid(object): for key in ['page', 'sortkey']: if 'grid.{}.{}'.format(self.key, key) in self.request.session: 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): """