From 798c960eadf6854e21da2fbb3671a2fdd1ef159e Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 12 Feb 2021 13:44:25 +0000 Subject: [PATCH] removed mytreetag model --- core/management/commands/addtaxonomy.py | 1 - products/models.py | 6 ------ 2 files changed, 7 deletions(-) diff --git a/core/management/commands/addtaxonomy.py b/core/management/commands/addtaxonomy.py index c58a1d3..569c4ac 100644 --- a/core/management/commands/addtaxonomy.py +++ b/core/management/commands/addtaxonomy.py @@ -23,7 +23,6 @@ class Command(BaseCommand): print(f"Reading from {settings.TAXONOMY_FILE}") for line in data_file.readlines(): try: - # tag = TreeTag.objects.create(name=line) tag = Product.tags.tag_model.objects.create(name=line) counter += 1 print('.', end='') diff --git a/products/models.py b/products/models.py index d3468dc..f6f7bd8 100644 --- a/products/models.py +++ b/products/models.py @@ -6,12 +6,6 @@ from companies.models import Company # Create your models here. -class MyTreeTags(TagTreeModel): - class TagMeta: - initial = "colors/blue, colors/red, colors/green" - force_lowercase = True - # autocomplete_view = 'myapp.views.hobbies_autocomplete' - class Product(models.Model):