From ae3f79e522cd6a14125d657437b1fb2312f49c5d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 5 Jun 2018 14:38:52 -0500 Subject: [PATCH] Set filter value renderer when setting enum for grid field --- tailbone/grids/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/grids/core.py b/tailbone/grids/core.py index 676480b6..7bcebb3d 100644 --- a/tailbone/grids/core.py +++ b/tailbone/grids/core.py @@ -206,6 +206,8 @@ class Grid(object): if enum: self.enums[key] = enum self.set_type(key, 'enum') + if key in self.filters: + self.filters[key].set_value_renderer(gridfilters.EnumValueRenderer(enum)) else: self.enums.pop(key, None)