Merge branch 'fix/tag_product' into 'develop'
Fix See merge request gm/gm-backend!141
This commit is contained in:
commit
9d816ade6b
|
|
@ -99,7 +99,8 @@ class Command(BaseCommand):
|
||||||
def remove_tags_product(self):
|
def remove_tags_product(self):
|
||||||
print('Begin clear tags product')
|
print('Begin clear tags product')
|
||||||
products = Product.objects.all()
|
products = Product.objects.all()
|
||||||
products.tags.clear()
|
for p in tqdm(products, desc='Clear tags product'):
|
||||||
|
p.tags.clear()
|
||||||
print('End clear tags product')
|
print('End clear tags product')
|
||||||
|
|
||||||
def product_sql(self):
|
def product_sql(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user