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:
|
elif categories.count() > 1:
|
||||||
categories = categories.filter(is_active=True)
|
categories = categories.filter(is_active=True)
|
||||||
chosen = categories.first()
|
chosen = categories.first()
|
||||||
categories.exlude(uuid=chosen.uuid)
|
categories.exclude(uuid=chosen.uuid)
|
||||||
categories.delete()
|
categories.delete()
|
||||||
return chosen
|
return chosen
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ class AbstractVendor:
|
||||||
elif brands.count() > 1:
|
elif brands.count() > 1:
|
||||||
brands = brands.filter(is_active=True)
|
brands = brands.filter(is_active=True)
|
||||||
chosen = brands.first()
|
chosen = brands.first()
|
||||||
brands.exlude(uuid=chosen.uuid)
|
brands.exclude(uuid=chosen.uuid)
|
||||||
brands.delete()
|
brands.delete()
|
||||||
return chosen
|
return chosen
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue