added geo module, with region supporting gis data

This commit is contained in:
Sam
2021-01-21 13:18:37 +00:00
parent 944bc7d6c7
commit 9965900791
12 changed files with 5108 additions and 4 deletions

View File

@@ -30,9 +30,10 @@ class Product(models.Model):
update_date = models.DateTimeField('Fecha de actualización de producto', null=True, blank=True)
discount = models.DecimalField('Descuento', max_digits=5, decimal_places=2, null=True, blank=True)
stock = models.PositiveIntegerField('Stock', null=True)
# tags
# category (main tag)
# identifiers = models.ManyToManyField('ean', null=True, blank=True) # EAN, UPC, MPN ???
# tags = models.ManyToMany(Tag, null=True, blank=True )
# category = models.ForeignKey(Tag, null=true) # main tag category
# attributes = models.ManyToMany(Tag, null=True, blank=True )
identifiers = models.TextField('Identificador único de producto', null=True, blank=True)
# internal
created = models.DateTimeField('date of creation', auto_now_add=True)