forked from uncloud/uncloud
Improving on 3.0.0 / adding productorder link based on slug
This commit is contained in:
parent
d3b6d28ae6
commit
8952ef0b3a
9 changed files with 178 additions and 8 deletions
|
|
@ -19,5 +19,10 @@ from app import views as appviews
|
|||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('order', appviews.ProductOrderView.as_view())
|
||||
path('order', appviews.ProductSelectView.as_view()),
|
||||
path('order/<slug:product>/', appviews.ProductOrderView.as_view(), name='product-order'),
|
||||
path('order/<slug:product>/<slug:timeframe>/', appviews.ProductOrderView.as_view(), name='product-order'),
|
||||
path('product/', appviews.ProductListView.as_view()),
|
||||
path('product/<slug:slug>/', appviews.ProductDetailView.as_view(), name='product-detail')
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue