From 02fc82e2c5395c2e3933d8e639426b616f573b4b Mon Sep 17 00:00:00 2001 From: shu-mutou Date: Wed, 11 Nov 2015 13:29:52 +0900 Subject: [PATCH] Remove unnecessary ugettext_lazy This patch remove unnecessary ugettext_lazy procedure against database instance name and image name for page title in its detail view. Change-Id: I4f9a2b9ca7d43cf6fdf6ae02f50ad2f9c625d602 Closes-Bug: #1515100 --- openstack_dashboard/contrib/trove/content/databases/views.py | 2 +- openstack_dashboard/dashboards/project/images/images/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/contrib/trove/content/databases/views.py b/openstack_dashboard/contrib/trove/content/databases/views.py index 7aa20a1306..02fdbbf7e7 100644 --- a/openstack_dashboard/contrib/trove/content/databases/views.py +++ b/openstack_dashboard/contrib/trove/content/databases/views.py @@ -101,7 +101,7 @@ class LaunchInstanceView(horizon_workflows.WorkflowView): class DetailView(horizon_tabs.TabbedTableView): tab_group_class = tabs.InstanceDetailTabs template_name = 'horizon/common/_detail.html' - page_title = _("{{ instance.name }}") + page_title = "{{ instance.name }}" def get_context_data(self, **kwargs): context = super(DetailView, self).get_context_data(**kwargs) diff --git a/openstack_dashboard/dashboards/project/images/images/views.py b/openstack_dashboard/dashboards/project/images/images/views.py index 74ff0a24c8..771f29d259 100644 --- a/openstack_dashboard/dashboards/project/images/images/views.py +++ b/openstack_dashboard/dashboards/project/images/images/views.py @@ -118,7 +118,7 @@ class UpdateView(forms.ModalFormView): class DetailView(tabs.TabView): tab_group_class = project_tabs.ImageDetailTabs template_name = 'horizon/common/_detail.html' - page_title = _("{{ image.name }}") + page_title = "{{ image.name }}" def get_context_data(self, **kwargs): context = super(DetailView, self).get_context_data(**kwargs)