|
1 |
| -from django.urls import re_path |
| 1 | +from django.urls import path, re_path |
2 | 2 |
|
3 | 3 | from . import views
|
4 | 4 |
|
5 | 5 | urlpatterns = [
|
6 |
| - re_path(r"^conference-ticket-types$", views.get__get_conference_ticket_types), |
| 6 | + path("conference-ticket-types", views.get__get_conference_ticket_types), |
7 | 7 | re_path(
|
8 | 8 | r"^conference-ticket-types/(?P<ticket_type_code>\w+)/check",
|
9 | 9 | views.get__check_conference_ticket_type_buyable,
|
10 | 10 | ),
|
11 |
| - re_path(r"^conference-tickets", views.post__add_conference_ticket), |
12 |
| - re_path(r"^list$", views.temp), |
13 |
| - re_path(r"^{item_id}$", views.temp), |
14 |
| - re_path(r"^success$", views.temp), |
15 |
| - re_path(r"^failed$", views.temp), |
16 |
| - re_path(r"^{ticket_id}/refund$", views.temp), |
| 11 | + path("conference-tickets", views.post__add_conference_ticket), |
| 12 | + path("list", views.temp), |
| 13 | + path("<int:item_id>", views.temp), |
| 14 | + path("success", views.temp), |
| 15 | + path("failed", views.temp), |
| 16 | + path("<int:ticket_id>/refund", views.temp_refund), |
17 | 17 | ]
|
0 commit comments