This commit is contained in:
Виктор Гладких 2019-11-19 15:45:49 +03:00
parent 3b0c872d51
commit fb0157042a

View File

@ -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):