This commit is contained in:
Виктор Гладких 2019-11-13 12:29:27 +03:00
parent f915657124
commit 9dde868828

View File

@ -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.'))