created TreeTag model, fixes for addtaxonomy command
This commit is contained in:
@@ -2,6 +2,8 @@ from django.db import models
|
||||
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
|
||||
from django.contrib.auth.models import PermissionsMixin
|
||||
|
||||
from tagulous.models import TagTreeModel
|
||||
|
||||
from companies.models import Company
|
||||
|
||||
# Create your models here.
|
||||
@@ -71,3 +73,9 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
|
||||
verbose_name = 'Usuario'
|
||||
verbose_name_plural = 'Usuarios'
|
||||
|
||||
|
||||
class TreeTag(TagTreeModel):
|
||||
class TagMeta:
|
||||
# initial = "food/eating, food/cooking, gaming/football"
|
||||
force_lowercase = True
|
||||
# autocomplete_view = 'myapp.views.hobbies_autocomplete'
|
||||
|
||||
Reference in New Issue
Block a user