Commit ec00a8c7 authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

changes is product management

parent 6766ce06
This diff is collapsed.
......@@ -24,3 +24,11 @@ class Polygon(models.Model):
E_MUN = models.CharField(verbose_name="City Stratum", max_length=10, default='')
E_AGEB = models.CharField(verbose_name="AGEB Stratum", max_length=10, default='')
wkt_polygon = models.TextField(default='')
class Product(models.Model):
uuid = models.CharField(max_length=50, default='')
identifier = models.CharField(max_length=50, default='')
file_path = models.CharField(max_length=50, default='')
json = models.TextField(default='')
......@@ -77,8 +77,9 @@ def productList(request):
# se crea una lista de objetos del catalogo
catalog = []
for p in products:
img_link = products[p]['link_icon']
img_link = img_link[:img_link.find("/")+2] + "emmhp:geoemm29@" + img_link[img_link.find("/")+2:]
if products.keys().index(p) == 0 : print json.dumps(products[p], indent=3, sort_keys=True, default=date_handler)
# img_link = products[p]['link_icon']
# img_link = img_link[:img_link.find("/")+2] + "emmhp:geoemm29@" + img_link[img_link.find("/")+2:]
catalog.append({
'process' : process,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment