From c2791b023ed99c3aaca0882d11bbb3e7e75e19da Mon Sep 17 00:00:00 2001 From: Stephen Early Date: Wed, 15 May 2024 21:39:55 +0100 Subject: [PATCH] Permit more characters in URLs for locations and groups --- quicktill/tillweb/urls.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quicktill/tillweb/urls.py b/quicktill/tillweb/urls.py index 3010cca..c41a66a 100644 --- a/quicktill/tillweb/urls.py +++ b/quicktill/tillweb/urls.py @@ -87,8 +87,7 @@ path('barcode//', views.barcode, name="tillweb-barcode"), path('location/', views.locationlist, name="tillweb-locations"), - re_path(r'^location/(?P[\w\- ]+)/$', views.location, - name="tillweb-location"), + path('location//', views.location, name="tillweb-location"), path('department/', views.departmentlist, name="tillweb-departments"), path('department//', views.department, @@ -108,8 +107,7 @@ path('new/user/', views.create_user, name="tillweb-create-user"), path('group/', views.grouplist, name="tillweb-till-groups"), - re_path(r'^group/(?P[\w\- ]+)/$', views.group, - name="tillweb-till-group"), + path('group//', views.group, name="tillweb-till-group"), path('new/group/', views.create_group, name="tillweb-create-till-group"), path('token/', views.tokenlist, name="tillweb-tokens"),