Fix
This commit is contained in:
parent
f915657124
commit
9dde868828
|
|
@ -91,7 +91,7 @@ class Command(BaseCommand):
|
||||||
products = Product.objects.filter(old_id=t.product_id)
|
products = Product.objects.filter(old_id=t.product_id)
|
||||||
if products.exists():
|
if products.exists():
|
||||||
for p in products:
|
for p in products:
|
||||||
p.tags.add(tag)
|
p.tags.add(*list(tag))
|
||||||
p.save()
|
p.save()
|
||||||
|
|
||||||
self.stdout.write(self.style.WARNING(f'Add or get tag objects.'))
|
self.stdout.write(self.style.WARNING(f'Add or get tag objects.'))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user