Get rid of removed Django code
Change-Id: Ia67b6a3a5cacfcb432ce7052e97297f94cded85d
This commit is contained in:
parent
789e7cea2d
commit
34bc1ed1de
|
@ -12,7 +12,6 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
|
||||
from .views import DetailView # noqa
|
||||
|
@ -22,15 +21,10 @@ from .views import UpdateView # noqa
|
|||
|
||||
|
||||
INSTANCES = r'^(?P<loadbalancer_id>[^/]+)/%s$'
|
||||
VIEW_MOD = 'openstack_dashboard.dashboards.project.loadbalancersv2.views'
|
||||
|
||||
|
||||
urlpatterns = patterns(VIEW_MOD,
|
||||
urlpatterns = [
|
||||
url(r'^$', IndexView.as_view(), name='index'),
|
||||
url(r'^launch$',
|
||||
LaunchLoadBalancerView.as_view(), name='launch'),
|
||||
url(r'^(?P<loadbalancer_id>[^/]+)/$',
|
||||
DetailView.as_view(), name='detail'),
|
||||
url(INSTANCES %
|
||||
'update', UpdateView.as_view(), name='update'),
|
||||
)
|
||||
url(r'^launch$', LaunchLoadBalancerView.as_view(), name='launch'),
|
||||
url(r'^(?P<loadbalancer_id>[^/]+)/$', DetailView.as_view(), name='detail'),
|
||||
url(INSTANCES % 'update', UpdateView.as_view(), name='update'),
|
||||
]
|
||||
|
|
|
@ -12,13 +12,11 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
|
||||
from neutron_lbaas_dashboard.dashboards.project.ngloadbalancersv2 import views
|
||||
|
||||
|
||||
urlpatterns = patterns(
|
||||
'neutron_lbaas_dashboard.dashboards.project.ngloadbalancersv2.views',
|
||||
urlpatterns = [
|
||||
url('', views.IndexView.as_view(), name='index'),
|
||||
)
|
||||
]
|
||||
|
|
|
@ -12,9 +12,8 @@
|
|||
# under the License.
|
||||
|
||||
from django.conf import urls
|
||||
import openstack_dashboard.urls
|
||||
from openstack_dashboard import urls as dashboard_urls
|
||||
|
||||
urlpatterns = urls.patterns(
|
||||
'',
|
||||
urls.url(r'', urls.include(openstack_dashboard.urls))
|
||||
)
|
||||
urlpatterns = [
|
||||
urls.url(r'', urls.include(dashboard_urls))
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue