Features: 1) Add return self to bulk_add_products; 2) Add return self to bulk_remove_products;
Fixes: None; Extra: None;
This commit is contained in:
parent
631d0b503e
commit
11071996af
1 changed files with 4 additions and 0 deletions
|
|
@ -1185,9 +1185,13 @@ class Wishlist(NiceModel):
|
|||
def bulk_add_products(self, product_uuids):
|
||||
self.products.add(*Product.objects.filter(uuid__in=product_uuids))
|
||||
|
||||
return self
|
||||
|
||||
def bulk_remove_products(self, product_uuids):
|
||||
self.products.remove(*Product.objects.filter(uuid__in=product_uuids))
|
||||
|
||||
return self
|
||||
|
||||
|
||||
class DigitalAssetDownload(NiceModel):
|
||||
is_publicly_visible = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue