added local TagTreeModel for testing

This commit is contained in:
Sam
2021-02-11 13:51:05 +00:00
parent 82a6273b3d
commit 58797d2972

View File

@@ -1,11 +1,18 @@
from django.contrib.gis.db import models from django.contrib.gis.db import models
from tagulous.models import SingleTagField, TagField from tagulous.models import SingleTagField, TagField, TagTreeModel
from companies.models import Company 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):
SYNCHRONIZED = 'SYNCHRONIZED' SYNCHRONIZED = 'SYNCHRONIZED'