From 135eb7c302380d7c2e0e6f90f603e2dfd7cb8c9a Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Wed, 7 Jan 2026 09:16:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20?= =?UTF-8?q?=D1=83=D1=81=D1=82=D0=B0=D1=80=D0=B5=D0=B2=D1=88=D0=B8=D0=B5=20?= =?UTF-8?q?URL=20=D0=B8=20=D1=83=D0=BD=D0=B8=D1=84=D0=B8=D1=86=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BD=D0=B0=D0=B2=D0=B8=D0=B3?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8E=20=D0=BA=20=D1=81=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=BA=D1=83=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Удалены legacy URL: all-products, product-list-legacy, productkit-list - Все ссылки теперь ведут на единый URL products-list - Обновлены ссылки в navbar, кнопках фильтров и представлениях - Упрощена навигация между товарами и комплектами --- .../products/templates/products/product_import_status.html | 2 +- myproject/products/views/productkit_views.py | 4 ++-- myproject/templates/components/category_filter_buttons.html | 4 ++-- myproject/templates/navbar.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/myproject/products/templates/products/product_import_status.html b/myproject/products/templates/products/product_import_status.html index c4e71fb..1a8ef57 100644 --- a/myproject/products/templates/products/product_import_status.html +++ b/myproject/products/templates/products/product_import_status.html @@ -91,7 +91,7 @@ Назад к импорту - diff --git a/myproject/products/views/productkit_views.py b/myproject/products/views/productkit_views.py index 11e425a..2dff15c 100644 --- a/myproject/products/views/productkit_views.py +++ b/myproject/products/views/productkit_views.py @@ -78,7 +78,7 @@ class ProductKitListView(LoginRequiredMixin, ManagerOwnerRequiredMixin, ListView }) action_buttons.append({ - 'url': reverse_lazy('products:product-list'), + 'url': reverse_lazy('products:products-list'), 'text': 'К товарам', 'class': 'btn-outline-primary', 'icon': 'box' @@ -489,7 +489,7 @@ class ProductKitDeleteView(LoginRequiredMixin, ManagerOwnerRequiredMixin, Delete def get_success_url(self): messages.success(self.request, f'Комплект "{self.object.name}" успешно удален!') - return reverse_lazy('products:productkit-list') + return reverse_lazy('products:products-list') class ProductKitMakePermanentView(LoginRequiredMixin, ManagerOwnerRequiredMixin, UpdateView): diff --git a/myproject/templates/components/category_filter_buttons.html b/myproject/templates/components/category_filter_buttons.html index 40bf92a..01f73f9 100644 --- a/myproject/templates/components/category_filter_buttons.html +++ b/myproject/templates/components/category_filter_buttons.html @@ -17,8 +17,8 @@ {% if show_type_filters|default:True %}