Set filter value renderer when setting enum for grid field
This commit is contained in:
parent
3688979b8f
commit
ae3f79e522
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue