Fix tag category add
This commit is contained in:
parent
94f7bda03a
commit
9fcaa6747a
|
|
@ -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()
|
||||
Loading…
Reference in New Issue
Block a user