removed mytreetag model
This commit is contained in:
@@ -23,7 +23,6 @@ class Command(BaseCommand):
|
|||||||
print(f"Reading from {settings.TAXONOMY_FILE}")
|
print(f"Reading from {settings.TAXONOMY_FILE}")
|
||||||
for line in data_file.readlines():
|
for line in data_file.readlines():
|
||||||
try:
|
try:
|
||||||
# tag = TreeTag.objects.create(name=line)
|
|
||||||
tag = Product.tags.tag_model.objects.create(name=line)
|
tag = Product.tags.tag_model.objects.create(name=line)
|
||||||
counter += 1
|
counter += 1
|
||||||
print('.', end='')
|
print('.', end='')
|
||||||
|
|||||||
@@ -6,12 +6,6 @@ from companies.models import Company
|
|||||||
|
|
||||||
# Create your models here.
|
# 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):
|
class Product(models.Model):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user