diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html index 05e00b3e19..05f9ef0d49 100644 --- a/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html +++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html @@ -7,7 +7,11 @@ " data-original-title="{% trans "Flavor Details" %}: {{ name }}">{{ name }} diff --git a/openstack_dashboard/dashboards/project/instances/views.py b/openstack_dashboard/dashboards/project/instances/views.py index b9ab7e3d9e..2a71310687 100644 --- a/openstack_dashboard/dashboards/project/instances/views.py +++ b/openstack_dashboard/dashboards/project/instances/views.py @@ -121,12 +121,13 @@ class IndexView(tables.DataTableView): return instances def get_filters(self, filters): - filter_field = self.table.get_filter_field() filter_action = self.table._meta._filter_action - if filter_action.is_api_filter(filter_field): - filter_string = self.table.get_filter_string() - if filter_field and filter_string: - filters[filter_field] = filter_string + if filter_action: + filter_field = self.table.get_filter_field() + if filter_action.is_api_filter(filter_field): + filter_string = self.table.get_filter_string() + if filter_field and filter_string: + filters[filter_field] = filter_string return filters