diff --git a/products/models.py b/products/models.py index 8fce915..d3468dc 100644 --- a/products/models.py +++ b/products/models.py @@ -1,11 +1,18 @@ 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 # 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): SYNCHRONIZED = 'SYNCHRONIZED'