Merge "Fix PEP8 issues in the panel template"

This commit is contained in:
Jenkins 2015-01-21 18:20:35 +00:00 committed by Gerrit Code Review
commit b38693089b
2 changed files with 8 additions and 4 deletions

View File

@ -399,10 +399,12 @@ The auto-generated ``urls.py`` file is like::
from django.conf.urls import patterns
from django.conf.urls import url
from .views import IndexView
from openstack_dashboard.dashboards.mydashboard.mypanel.views \
import IndexView
urlpatterns = patterns('',
urlpatterns = patterns(
'',
url(r'^$', IndexView.as_view(), name='index'),
)

View File

@ -1,9 +1,11 @@
from django.conf.urls import patterns
from django.conf.urls import url
from .views import IndexView
from {{ dash_path }}.{{ panel_name }}.views \
import IndexView
urlpatterns = patterns('',
urlpatterns = patterns(
'',
url(r'^$', IndexView.as_view(), name='index'),
)