From fb0157042a27d44bd330a34542779c80be6511e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=20=D0=93=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=BA=D0=B8=D1=85?= Date: Tue, 19 Nov 2019 15:45:49 +0300 Subject: [PATCH] Fix --- apps/product/management/commands/add_product_tag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):