removed mytreetag model

This commit is contained in:
Sam
2021-02-12 13:44:25 +00:00
parent 682a41e828
commit 798c960ead
2 changed files with 0 additions and 7 deletions

View File

@@ -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='')

View File

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