From 9dde868828d5d6d38e420fa9f2c27362d66e87d2 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:29:27 +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 b93a5672..e8bb2f3f 100644 --- a/apps/product/management/commands/add_product_tag.py +++ b/apps/product/management/commands/add_product_tag.py @@ -91,7 +91,7 @@ class Command(BaseCommand): products = Product.objects.filter(old_id=t.product_id) if products.exists(): for p in products: - p.tags.add(tag) + p.tags.add(*list(tag)) p.save() self.stdout.write(self.style.WARNING(f'Add or get tag objects.'))