From 0cd2e417cb98f0fdb9356983064c102a5309c677 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sun, 26 Oct 2025 20:09:05 +0300 Subject: [PATCH] Features: 1) Add `form` attribute to `StockInline` class to use `StockForm`. Fixes: None; Extra: None; --- core/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/admin.py b/core/admin.py index d7ce8e99..5649fe98 100644 --- a/core/admin.py +++ b/core/admin.py @@ -164,6 +164,7 @@ class ProductImageInline(TabularInline): # type: ignore [type-arg] class StockInline(TabularInline): # type: ignore [type-arg] model = Stock extra = 0 + form = StockForm is_navtab = True verbose_name = _("stock") verbose_name_plural = _("stocks")