Merge "[Django 1.10] Remove old style URLS"

This commit is contained in:
Jenkins 2016-07-26 12:20:38 +00:00 committed by Gerrit Code Review
commit c9d9df0788
2 changed files with 4 additions and 8 deletions

View File

@ -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 openstack_dashboard.dashboards.project.ngdetails import views
urlpatterns = patterns(
'openstack_dashboard.dashboards.project.ngdetails.views',
urlpatterns = [
url('', views.IndexView.as_view(), name='index'),
)
]

View File

@ -10,17 +10,15 @@
# 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 openstack_dashboard.dashboards.project.volumes.cg_snapshots import views
urlpatterns = patterns(
'',
urlpatterns = [
url(r'^(?P<cg_snapshot_id>[^/]+)/cg_snapshot_detail/$',
views.DetailView.as_view(),
name='cg_snapshot_detail'),
url(r'^(?P<cg_snapshot_id>[^/]+)/create_cgroup/$',
views.CreateCGroupView.as_view(),
name='create_cgroup'),
)
]