From 7954f85e05520d99d9ed741c6f10e246aed54aa4 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Tue, 30 Dec 2025 01:52:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=20configurablekit=5F*=20=E2=86=92=20configur?= =?UTF-8?q?ableproduct=5F*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Шаблоны: configurablekit_*.html → configurableproduct_*.html - Views: configurablekit_views.py → configurableproduct_views.py - JS: configurablekit_detail.js → configurableproduct_detail.js - Обновлены все template_name и импорты 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- ...ablekit_detail.js => configurableproduct_detail.js} | 2 +- ...te.html => configurableproduct_confirm_delete.html} | 0 ...kit_detail.html => configurableproduct_detail.html} | 0 ...ablekit_form.html => configurableproduct_form.html} | 0 ...ablekit_list.html => configurableproduct_list.html} | 0 myproject/products/views/__init__.py | 2 +- ...urablekit_views.py => configurableproduct_views.py} | 10 +++++----- 7 files changed, 7 insertions(+), 7 deletions(-) rename myproject/products/static/products/js/{configurablekit_detail.js => configurableproduct_detail.js} (99%) rename myproject/products/templates/products/{configurablekit_confirm_delete.html => configurableproduct_confirm_delete.html} (100%) rename myproject/products/templates/products/{configurablekit_detail.html => configurableproduct_detail.html} (100%) rename myproject/products/templates/products/{configurablekit_form.html => configurableproduct_form.html} (100%) rename myproject/products/templates/products/{configurablekit_list.html => configurableproduct_list.html} (100%) rename myproject/products/views/{configurablekit_views.py => configurableproduct_views.py} (99%) diff --git a/myproject/products/static/products/js/configurablekit_detail.js b/myproject/products/static/products/js/configurableproduct_detail.js similarity index 99% rename from myproject/products/static/products/js/configurablekit_detail.js rename to myproject/products/static/products/js/configurableproduct_detail.js index b4c6dac..fe38f82 100644 --- a/myproject/products/static/products/js/configurablekit_detail.js +++ b/myproject/products/static/products/js/configurableproduct_detail.js @@ -1,5 +1,5 @@ /** - * Управление вариантами вариативного товара (ConfigurableKitProduct) + * Управление вариантами вариативного товара (ConfigurableProduct) */ document.addEventListener('DOMContentLoaded', function() { diff --git a/myproject/products/templates/products/configurablekit_confirm_delete.html b/myproject/products/templates/products/configurableproduct_confirm_delete.html similarity index 100% rename from myproject/products/templates/products/configurablekit_confirm_delete.html rename to myproject/products/templates/products/configurableproduct_confirm_delete.html diff --git a/myproject/products/templates/products/configurablekit_detail.html b/myproject/products/templates/products/configurableproduct_detail.html similarity index 100% rename from myproject/products/templates/products/configurablekit_detail.html rename to myproject/products/templates/products/configurableproduct_detail.html diff --git a/myproject/products/templates/products/configurablekit_form.html b/myproject/products/templates/products/configurableproduct_form.html similarity index 100% rename from myproject/products/templates/products/configurablekit_form.html rename to myproject/products/templates/products/configurableproduct_form.html diff --git a/myproject/products/templates/products/configurablekit_list.html b/myproject/products/templates/products/configurableproduct_list.html similarity index 100% rename from myproject/products/templates/products/configurablekit_list.html rename to myproject/products/templates/products/configurableproduct_list.html diff --git a/myproject/products/views/__init__.py b/myproject/products/views/__init__.py index e843f85..ed6fa9f 100644 --- a/myproject/products/views/__init__.py +++ b/myproject/products/views/__init__.py @@ -81,7 +81,7 @@ from .tag_views import ( ) # CRUD представления для ConfigurableProduct -from .configurablekit_views import ( +from .configurableproduct_views import ( ConfigurableProductListView, ConfigurableProductCreateView, ConfigurableProductDetailView, diff --git a/myproject/products/views/configurablekit_views.py b/myproject/products/views/configurableproduct_views.py similarity index 99% rename from myproject/products/views/configurablekit_views.py rename to myproject/products/views/configurableproduct_views.py index 87ab024..69437e2 100644 --- a/myproject/products/views/configurablekit_views.py +++ b/myproject/products/views/configurableproduct_views.py @@ -25,7 +25,7 @@ from ..forms import ( class ConfigurableProductListView(LoginRequiredMixin, ManagerOwnerRequiredMixin, ListView): model = ConfigurableProduct - template_name = 'products/configurablekit_list.html' + template_name = 'products/configurableproduct_list.html' context_object_name = 'configurable_kits' paginate_by = 20 @@ -82,7 +82,7 @@ class ConfigurableProductListView(LoginRequiredMixin, ManagerOwnerRequiredMixin, class ConfigurableProductDetailView(LoginRequiredMixin, ManagerOwnerRequiredMixin, DetailView): model = ConfigurableProduct - template_name = 'products/configurablekit_detail.html' + template_name = 'products/configurableproduct_detail.html' context_object_name = 'configurable_kit' def get_queryset(self): @@ -107,7 +107,7 @@ class ConfigurableProductDetailView(LoginRequiredMixin, ManagerOwnerRequiredMixi class ConfigurableProductCreateView(LoginRequiredMixin, ManagerOwnerRequiredMixin, CreateView): model = ConfigurableProduct form_class = ConfigurableProductForm - template_name = 'products/configurablekit_form.html' + template_name = 'products/configurableproduct_form.html' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) @@ -379,7 +379,7 @@ class ConfigurableProductCreateView(LoginRequiredMixin, ManagerOwnerRequiredMixi class ConfigurableProductUpdateView(LoginRequiredMixin, ManagerOwnerRequiredMixin, UpdateView): model = ConfigurableProduct form_class = ConfigurableProductForm - template_name = 'products/configurablekit_form.html' + template_name = 'products/configurableproduct_form.html' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) @@ -655,7 +655,7 @@ class ConfigurableProductUpdateView(LoginRequiredMixin, ManagerOwnerRequiredMixi class ConfigurableProductDeleteView(LoginRequiredMixin, ManagerOwnerRequiredMixin, DeleteView): model = ConfigurableProduct - template_name = 'products/configurablekit_confirm_delete.html' + template_name = 'products/configurableproduct_confirm_delete.html' success_url = reverse_lazy('products:configurablekit-list') def form_valid(self, form):