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:
parent
f62df9a1d1
commit
4a2d1d66e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue