diff --git a/openstack_dashboard/contrib/trove/content/database_clusters/views.py b/openstack_dashboard/contrib/trove/content/database_clusters/views.py index b66c2791..817c1ae1 100644 --- a/openstack_dashboard/contrib/trove/content/database_clusters/views.py +++ b/openstack_dashboard/contrib/trove/content/database_clusters/views.py @@ -24,6 +24,8 @@ from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse_lazy from django.utils.translation import ugettext_lazy as _ +import six + from horizon import exceptions from horizon import forms as horizon_forms from horizon import tables as horizon_tables @@ -54,7 +56,8 @@ class IndexView(horizon_tables.DataTableView): flavors = [] msg = _('Unable to retrieve database size information.') exceptions.handle(self.request, msg) - return OrderedDict((unicode(flavor.id), flavor) for flavor in flavors) + return OrderedDict((six.text_type(flavor.id), flavor) + for flavor in flavors) def _extra_data(self, cluster): try: