From 661cabf75276bfc0529883d754e339ef0c7bd878 Mon Sep 17 00:00:00 2001 From: Praveen Yalagandula Date: Wed, 23 Nov 2016 00:20:17 +0000 Subject: [PATCH] Using horizon's templateview instead of generic one from django By using Horizon's templateview which adds PageTitleMixin, the dashboard will display the page title properly when one browses to LoadBalancer panel. Change-Id: Ic79dbf8600bb013d2b76b1193b739ce7ecf0de78 Closes-Bug: #1644061 --- .../dashboards/project/ngloadbalancersv2/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neutron_lbaas_dashboard/dashboards/project/ngloadbalancersv2/views.py b/neutron_lbaas_dashboard/dashboards/project/ngloadbalancersv2/views.py index 1101205..83978d9 100644 --- a/neutron_lbaas_dashboard/dashboards/project/ngloadbalancersv2/views.py +++ b/neutron_lbaas_dashboard/dashboards/project/ngloadbalancersv2/views.py @@ -12,8 +12,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.views import generic +from horizon.views import HorizonTemplateView -class IndexView(generic.TemplateView): +class IndexView(HorizonTemplateView): template_name = 'project/ngloadbalancersv2/index.html' + page_title = 'Load Balancers'