diff --git a/tailbone/grids/filters.py b/tailbone/grids/filters.py index e5618320..87523d32 100644 --- a/tailbone/grids/filters.py +++ b/tailbone/grids/filters.py @@ -29,6 +29,7 @@ from __future__ import unicode_literals, absolute_import import datetime import logging +import six import sqlalchemy as sa from rattail.gpc import GPC @@ -106,7 +107,7 @@ class EnumValueRenderer(ChoiceValueRenderer): def __init__(self, enum): sorted_keys = sorted(enum, key=lambda k: enum[k].lower()) - self.options = [tags.Option(enum[k], k) for k in sorted_keys] + self.options = [tags.Option(enum[k], six.text_type(k)) for k in sorted_keys] class GridFilter(object):