Fixes: 1) Remove unnecessary addition of product.category to attribute.categories in core/vendors/__init__.py.

Extra: Minor cleanup to improve readability and maintainability.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-10-09 12:41:25 +03:00
parent d14d8e41db
commit c9d6ec22f5

View file

@ -397,7 +397,6 @@ class AbstractVendor:
except IntegrityError: except IntegrityError:
return return
attribute.categories.add(product.category)
attribute.save() # type: ignore [no-untyped-call] attribute.save() # type: ignore [no-untyped-call]
if not is_created: if not is_created: