From e2c6552677629a0ac59092b48ec2a23b358679f3 Mon Sep 17 00:00:00 2001 From: Dhwani Patel Date: Tue, 26 Mar 2024 16:12:15 -0600 Subject: [PATCH] Remove re_path from administration/urls.py --- storage_service/administration/urls.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/storage_service/administration/urls.py b/storage_service/administration/urls.py index 12728a9b6..ebf8ed3ff 100644 --- a/storage_service/administration/urls.py +++ b/storage_service/administration/urls.py @@ -1,6 +1,5 @@ from administration import views from django.urls import path -from django.urls import re_path app_name = "administration" urlpatterns = [ @@ -10,17 +9,15 @@ path("version/", views.version_view, name="version"), path("users/", views.user_list, name="user_list"), path("users/create/", views.user_create, name="user_create"), - re_path(r"^users/(?P[-\w]+)/edit/$", views.user_edit, name="user_edit"), - re_path(r"^users/(?P[-\w]+)/$", views.user_detail, name="user_detail"), + path("users//edit/", views.user_edit, name="user_edit"), + path("users//", views.user_detail, name="user_detail"), path("language/", views.change_language, name="change_language"), path("keys/", views.key_list, name="key_list"), - re_path( - r"^keys/(?P[\w]+)/detail$", views.key_detail, name="key_detail" - ), + path("keys//detail/", views.key_detail, name="key_detail"), path("keys/create/", views.key_create, name="key_create"), path("keys/import/", views.key_import, name="key_import"), - re_path( - r"^keys/(?P[\w]+)/delete/$", + path( + "keys//delete/", views.key_delete, name="key_delete", ),