fix proper urls for ticket app
This commit is contained in:
parent
13efe137b8
commit
15cc999e55
|
@ -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'
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue