diff options
-rw-r--r-- | app/projects/views.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/projects/views.py b/app/projects/views.py index 39ae781..c8a0692 100644 --- a/app/projects/views.py +++ b/app/projects/views.py @@ -2,8 +2,6 @@ from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.db.models import get_model -from projects.shortcuts import render_to_geojson -from projects.models.natparks import NationalParks from projects.models.gifs import AnimatedGif projects = { @@ -32,14 +30,3 @@ def detail(request, slug): def gif_detail(request, slug): obj = get_object_or_404(AnimatedGif, slug__exact=slug) return render_to_response('details/gifs.html', {'object': obj}, context_instance=RequestContext(request)) - - -def data_json(request, id): - qs = NationalParks.objects.filter(pk=id) - return render_to_geojson( - qs, - included_fields=['id'], - geom_attribute='mpoly', - mimetype='application/json', - pretty_print=True - ) |