feat: create/edit product views
This commit is contained in:
@@ -6,8 +6,22 @@ urlpatterns = [
|
||||
path('', products.ProductListView.as_view(), name='product_list'),
|
||||
path('create/', products.ProductCreateView.as_view(), name='product_create'),
|
||||
path('<int:pk>/', products.ProductDetailView.as_view(), name='product_detail'),
|
||||
path('<int:pk>/edit/', products.ProductUpdateView.as_view(), name='product_update'),
|
||||
path('<int:pk>/delete/', products.ProductDeleteView.as_view(), name='product_delete'),
|
||||
path(
|
||||
'<int:pk>/inline/<str:field_name>/',
|
||||
products.ProductInlineViewFragment.as_view(),
|
||||
name='product_inline_view',
|
||||
),
|
||||
path(
|
||||
'<int:pk>/inline/<str:field_name>/edit/',
|
||||
products.ProductInlineEditView.as_view(),
|
||||
name='product_inline_edit',
|
||||
),
|
||||
path(
|
||||
'inline-search/<str:field_name>/',
|
||||
products.ProductFieldSearchView.as_view(),
|
||||
name='product_field_search',
|
||||
),
|
||||
path('<int:product_pk>/prices/create/', products.ProductPriceCreateView.as_view(), name='product_price_create'),
|
||||
path(
|
||||
'<int:product_pk>/variants/create/',
|
||||
|
||||
Reference in New Issue
Block a user