Features: None;

Fixes: 1) Correct typo in 'exclude' method call for categories; 2) Correct typo in 'exclude' method call for brands;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-05-09 06:57:41 +03:00
parent 695058128e
commit 3185eb8188

View file

@ -114,7 +114,7 @@ class AbstractVendor:
elif categories.count() > 1:
categories = categories.filter(is_active=True)
chosen = categories.first()
categories.exlude(uuid=chosen.uuid)
categories.exclude(uuid=chosen.uuid)
categories.delete()
return chosen
@ -137,7 +137,7 @@ class AbstractVendor:
elif brands.count() > 1:
brands = brands.filter(is_active=True)
chosen = brands.first()
brands.exlude(uuid=chosen.uuid)
brands.exclude(uuid=chosen.uuid)
brands.delete()
return chosen