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
This commit is contained in:
Praveen Yalagandula 2016-11-23 00:20:17 +00:00
parent 599ee74977
commit 661cabf752
1 changed files with 3 additions and 2 deletions

View File

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