diff --git a/apps/product/management/commands/add_product_tag.py b/apps/product/management/commands/add_product_tag.py index eddfd707..ee4829f5 100644 --- a/apps/product/management/commands/add_product_tag.py +++ b/apps/product/management/commands/add_product_tag.py @@ -4,7 +4,6 @@ from establishment.management.commands.add_position import namedtuplefetchall from tag.models import Tag, TagCategory from product.models import Product from tqdm import tqdm -from django.db.models.functions import Lower class Command(BaseCommand): @@ -72,7 +71,6 @@ class Command(BaseCommand): qs = tags.filter(old_id_meta_product__isnull=True)\ .update(old_id_meta_product=t.old_id) - Tag.objects.bulk_create(objects) self.stdout.write(self.style.WARNING(f'Add or get tag objects.')) @@ -112,7 +110,6 @@ class Command(BaseCommand): tag.label = new_label tag.save() - def handle(self, *args, **kwargs): self.add_category_tag() self.add_tag()