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

View File

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