fix proper urls for ticket app

This commit is contained in:
Stephan Telling 2017-08-19 23:49:55 +02:00
parent 13efe137b8
commit 15cc999e55
No known key found for this signature in database
GPG Key ID: D4892289F36ADA9B
1 changed files with 3 additions and 3 deletions

View File

@ -8,17 +8,17 @@ from .views import (
urlpatterns = [ urlpatterns = [
url( url(
r'tickets/$', r'^$',
ShopTicketListView.as_view(), ShopTicketListView.as_view(),
name='shopticket_list' name='shopticket_list'
), ),
url( url(
r'tickets/(?P<pk>\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<pk>\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(), ShopTicketDownloadView.as_view(),
name='shopticket_download' name='shopticket_download'
), ),
url( url(
r'tickets/(?P<pk>\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<pk>\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(), ShopTicketDetailView.as_view(),
name='shopticket_edit' name='shopticket_edit'
), ),