feat: create/edit product views

This commit is contained in:
2026-07-23 16:19:19 +02:00
parent 2a9407e676
commit 1d11ea9b6e
16 changed files with 574 additions and 175 deletions
+15 -1
View File
@@ -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/',