Skip to content

Commit

Permalink
Simplify URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Oct 15, 2023
1 parent b486aaa commit 4527600
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions user_sessions/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from django.urls import path, re_path
from django.urls import path

from user_sessions.views import SessionDeleteOtherView

from .views import SessionDeleteView, SessionListView
from .views import SessionDeleteOtherView, SessionDeleteView, SessionListView

app_name = 'user_sessions'
urlpatterns = [
Expand All @@ -16,8 +14,8 @@
view=SessionDeleteOtherView.as_view(),
name='session_delete_other',
),
re_path(
r'^account/sessions/(?P<pk>\w+)/delete/$',
path(
'account/sessions/<str:pk>/delete/',
view=SessionDeleteView.as_view(),
name='session_delete',
),
Expand Down

0 comments on commit 4527600

Please sign in to comment.