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

View file

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