applied tags field to company model

This commit is contained in:
Sam
2021-01-26 12:06:20 +00:00
parent 2a05beec07
commit a9658c1009
3 changed files with 11 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
# from django.db import models
from django.contrib.gis.db import models
from tagulous.models import TagField
# Create your models here.
class Company(models.Model):
@@ -34,7 +36,7 @@ class Company(models.Model):
shop_rss_feed = models.URLField('RSS tienda online', null=True, blank=True)
sale_terms = models.TextField('Condiciones de venta', null=True, blank=True)
shipping_cost = models.DecimalField('Gastos de envío', max_digits=10, decimal_places=2, null=True, blank=True)
# tags = models.ManyToMany(Tag, null=True)
tags = TagField(force_lowercase=True,max_count=5, tree=True)
sync = models.BooleanField('Sincronizar tienda', default=False, null=True, blank=True)
# internal