From 1e2b64514bebffa4b14caf9b214d9e58cf30db4b Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Mon, 30 Jun 2025 17:15:53 +0300 Subject: [PATCH] Features: 1) Update admin fields for `tags` and `stocks__vendor` to use `DALFRelatedFieldAjax`; Fixes: 1) Resolve inconsistency by replacing `DALFRelatedOnlyField` with `DALFRelatedFieldAjax`; Extra: Clean up admin field definitions to align with the latest field usage. --- core/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin.py b/core/admin.py index fd08560b..664c9011 100644 --- a/core/admin.py +++ b/core/admin.py @@ -244,8 +244,8 @@ class ProductAdmin(FieldsetsMixin, BasicModelAdmin): "is_digital", ("brand", DALFRelatedFieldAjax), ("category", DALFRelatedFieldAjax), - ("tags", DALFRelatedOnlyField), - ("stocks__vendor", DALFRelatedOnlyField), + ("tags", DALFRelatedFieldAjax), + ("stocks__vendor", DALFRelatedFieldAjax), "created", "modified", )