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):