From 58797d297225c7cb4f7617dccab30cbcd3205ab3 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 11 Feb 2021 13:51:05 +0000 Subject: [PATCH] added local TagTreeModel for testing --- products/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'