From 15cc999e550a8201b88dec972f6930283ce0e971 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Sat, 19 Aug 2017 23:49:55 +0200 Subject: [PATCH] fix proper urls for ticket app --- src/tickets/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tickets/urls.py b/src/tickets/urls.py index 658ab01e..002283ba 100644 --- a/src/tickets/urls.py +++ b/src/tickets/urls.py @@ -8,17 +8,17 @@ from .views import ( urlpatterns = [ url( - r'tickets/$', + r'^$', ShopTicketListView.as_view(), name='shopticket_list' ), url( - r'tickets/(?P\b[0-9A-Fa-f]{8}\b(-\b[0-9A-Fa-f]{4}\b){3}-\b[0-9A-Fa-f]{12}\b)/download$', + r'^(?P\b[0-9A-Fa-f]{8}\b(-\b[0-9A-Fa-f]{4}\b){3}-\b[0-9A-Fa-f]{12}\b)/download/$', ShopTicketDownloadView.as_view(), name='shopticket_download' ), url( - r'tickets/(?P\b[0-9A-Fa-f]{8}\b(-\b[0-9A-Fa-f]{4}\b){3}-\b[0-9A-Fa-f]{12}\b)/edit$', + r'^(?P\b[0-9A-Fa-f]{8}\b(-\b[0-9A-Fa-f]{4}\b){3}-\b[0-9A-Fa-f]{12}\b)/edit/$', ShopTicketDetailView.as_view(), name='shopticket_edit' ),