Skip to content

Commit

Permalink
Remove re_path from administration/urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhwaniartefact committed Mar 26, 2024
1 parent 07170f3 commit e2c6552
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions storage_service/administration/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from administration import views
from django.urls import path
from django.urls import re_path

app_name = "administration"
urlpatterns = [
Expand All @@ -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<id>[-\w]+)/edit/$", views.user_edit, name="user_edit"),
re_path(r"^users/(?P<id>[-\w]+)/$", views.user_detail, name="user_detail"),
path("users/<int:id>/edit/", views.user_edit, name="user_edit"),
path("users/<int:id>/", 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<key_fingerprint>[\w]+)/detail$", views.key_detail, name="key_detail"
),
path("keys/<str:key_fingerprint>/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<key_fingerprint>[\w]+)/delete/$",
path(
"keys/<str:key_fingerprint>/delete/",
views.key_delete,
name="key_delete",
),
Expand Down

0 comments on commit e2c6552

Please sign in to comment.