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
This commit is contained in:
eric 2015-01-27 11:20:21 -07:00
parent f62df9a1d1
commit 4a2d1d66e7
1 changed files with 2 additions and 1 deletions

View File

@ -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