diff --git a/apps/product/management/commands/add_product_tag.py b/apps/product/management/commands/add_product_tag.py index 74427110..33c98b6b 100644 --- a/apps/product/management/commands/add_product_tag.py +++ b/apps/product/management/commands/add_product_tag.py @@ -99,7 +99,8 @@ class Command(BaseCommand): def remove_tags_product(self): print('Begin clear tags product') products = Product.objects.all() - products.tags.clear() + for p in tqdm(products, desc='Clear tags product'): + p.tags.clear() print('End clear tags product') def product_sql(self):