From 4a2d1d66e7b7e90c37836cd5cb926b0e5aae07dc Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 27 Jan 2015 11:20:21 -0700 Subject: [PATCH] Correcting heat resource page title The page title for heat resources was a huge object with all of it's attributes and renders to the page in the most horrific of ways. This fixes that Change-Id: I886cbdd27c41652f8da9248fe6fc5157581fba3f Closes-bug: 1415084 --- openstack_dashboard/dashboards/project/stacks/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/project/stacks/views.py b/openstack_dashboard/dashboards/project/stacks/views.py index 8796e18d0e..890cc398a1 100644 --- a/openstack_dashboard/dashboards/project/stacks/views.py +++ b/openstack_dashboard/dashboards/project/stacks/views.py @@ -252,7 +252,8 @@ class ResourceView(tabs.TabView): resource = self.get_data(self.request, **kwargs) context["resource"] = resource context["metadata"] = self.get_metadata(self.request, **kwargs) - context["page_title"] = _("Resource Details: %s") % resource + context["page_title"] = _("Resource Details: %s") % \ + getattr(resource, 'resource_name') return context @memoized.memoized_method