mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-08 08:06:20 +01:00
Switch to path, use re_path only when really needed
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from django.urls import re_path
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = 'timerboard'
|
||||
|
||||
urlpatterns = [
|
||||
re_path(r'^$', views.TimerView.as_view(), name='view'),
|
||||
re_path(r'^add/$', views.AddTimerView.as_view(), name='add'),
|
||||
re_path(r'^remove/(?P<pk>\w+)$', views.RemoveTimerView.as_view(), name='delete'),
|
||||
re_path(r'^edit/(?P<pk>\w+)$', views.EditTimerView.as_view(), name='edit'),
|
||||
path('', views.TimerView.as_view(), name='view'),
|
||||
path('add/', views.AddTimerView.as_view(), name='add'),
|
||||
path('remove/<int:pk>/', views.RemoveTimerView.as_view(), name='delete'),
|
||||
path('edit/<int:pk>/', views.EditTimerView.as_view(), name='edit'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user