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:
parent
695058128e
commit
3185eb8188
1 changed files with 2 additions and 2 deletions
4
core/vendors/__init__.py
vendored
4
core/vendors/__init__.py
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue