diff --git a/apps/product/management/commands/add_product_tag.py b/apps/product/management/commands/add_product_tag.py index 5633230c..8b6ef85f 100644 --- a/apps/product/management/commands/add_product_tag.py +++ b/apps/product/management/commands/add_product_tag.py @@ -27,8 +27,7 @@ class Command(BaseCommand): def add_category_tag(self): objects = [] for c in tqdm(self.category_sql(), desc='Add category tags'): - categories = TagCategory.objects.filter(index_name=c.category, - value_type=c.value_type + categories = TagCategory.objects.filter(index_name=c.category ) if not categories.exists(): objects.append( @@ -112,5 +111,5 @@ class Command(BaseCommand): def handle(self, *args, **kwargs): self.add_category_tag() self.add_tag() + self.check_tag() self.add_product_tag() - self.check_tag() \ No newline at end of file