Commit 9f18a1d6 authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

prueba

parent 36431267
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -4,7 +4,7 @@ from __future__ import unicode_literals
from django.shortcuts import render
from catalog.forms import ASFSearchForm
from catalog.models import Polygon
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.urls import reverse
from django.views.generic.base import View
from django.template import loader
......@@ -69,7 +69,7 @@ class SearchSubmitView(View):
data.append({
'city' : polygon.name,
'state' : self.state_parser(polygonInfo['properties']['CVE_ENT']),
'state' : self.state_parser[polygonInfo['properties']['CVE_ENT']],
'geojson': polygon.json_info
})
......@@ -79,7 +79,7 @@ class SearchSubmitView(View):
}
rendered_template = template.render(context, request)
print("Data:", data)
print("DATA:", data)
return HttpResponse(rendered_template, content_type='application/json')
......
No preview for this file type
No preview for this file type
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