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:
parent
d14d8e41db
commit
c9d6ec22f5
1 changed files with 0 additions and 1 deletions
1
core/vendors/__init__.py
vendored
1
core/vendors/__init__.py
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue