From f91565712434ea97a055c805836d5390f7aecf96 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: Wed, 13 Nov 2019 12:27:03 +0300 Subject: [PATCH] Fix --- apps/product/management/commands/add_product_tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/product/management/commands/add_product_tag.py b/apps/product/management/commands/add_product_tag.py index a360b1b7..b93a5672 100644 --- a/apps/product/management/commands/add_product_tag.py +++ b/apps/product/management/commands/add_product_tag.py @@ -90,7 +90,7 @@ class Command(BaseCommand): tag.filter(lower_value=t.tag_value, category=category) products = Product.objects.filter(old_id=t.product_id) if products.exists(): - for p in products.all(): + for p in products: p.tags.add(tag) p.save()