summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/admin/images/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/admin/images/urls.py')
-rw-r--r--openstack_dashboard/dashboards/admin/images/urls.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/openstack_dashboard/dashboards/admin/images/urls.py b/openstack_dashboard/dashboards/admin/images/urls.py
index cc5028618..3bb9c96b9 100644
--- a/openstack_dashboard/dashboards/admin/images/urls.py
+++ b/openstack_dashboard/dashboards/admin/images/urls.py
@@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-from django.conf.urls import url
+from django.urls import re_path
from django.utils.translation import gettext_lazy as _
from horizon.browsers.views import AngularIndexView
@@ -27,16 +27,16 @@ if setting_utils.get_dict_config('ANGULAR_FEATURES', 'images_panel'):
title = _("Images")
# New angular images
urlpatterns = [
- url(r'^$', AngularIndexView.as_view(title=title), name='index'),
- url(r'^(?P<image_id>[^/]+)/detail/$',
- AngularIndexView.as_view(title=title), name='detail'),
+ re_path(r'^$', AngularIndexView.as_view(title=title), name='index'),
+ re_path(r'^(?P<image_id>[^/]+)/detail/$',
+ AngularIndexView.as_view(title=title), name='detail'),
]
else:
urlpatterns = [
- url(r'^$', views.IndexView.as_view(), name='index'),
- url(r'^create/$', views.CreateView.as_view(), name='create'),
- url(r'^(?P<image_id>[^/]+)/update/$',
- views.UpdateView.as_view(), name='update'),
- url(r'^(?P<image_id>[^/]+)/detail/$',
- views.DetailView.as_view(), name='detail')
+ re_path(r'^$', views.IndexView.as_view(), name='index'),
+ re_path(r'^create/$', views.CreateView.as_view(), name='create'),
+ re_path(r'^(?P<image_id>[^/]+)/update/$',
+ views.UpdateView.as_view(), name='update'),
+ re_path(r'^(?P<image_id>[^/]+)/detail/$',
+ views.DetailView.as_view(), name='detail')
]