-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Реализовал механизм снятия или вывод товара в продажу
- Loading branch information
1 parent
20798fc
commit 6982c7a
Showing
3 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
from django.urls import path | ||
from .apps import ProductsConfig | ||
from .views import ProductCreateView, ProductDetailView, ProductListView, ProductDeleteView | ||
from .views import ProductCreateView, ProductDetailView, ProductListView, ProductDeleteView, ChangeProductSaleStatus | ||
|
||
app_name = ProductsConfig.name | ||
|
||
|
||
urlpatterns = [ | ||
path('create/', ProductCreateView.as_view(), name='create-product'), | ||
path('list/', ProductListView.as_view(), name='products-list'), | ||
path('change_status/<int:pk>/', ChangeProductSaleStatus.as_view(), name='change-status'), | ||
path('detail/<int:pk>/', ProductDetailView.as_view(), name='product-detail'), | ||
path('delete/<int:pk>/', ProductDeleteView.as_view(), name='product-delete'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters