diff options
author | luxagraf <sng@luxagraf.net> | 2014-05-27 20:22:24 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-05-27 20:22:24 -0400 |
commit | 70b6c4e84a0b8cc7554ebbd65d237e8f241c31fd (patch) | |
tree | 0bdc09475b1531319d0fa9c3fbdb312910eb9421 | |
parent | 33820d55fc7152f7c15a3fd3a0ee4032cde4edb5 (diff) |
bug fix in loc.views
-rw-r--r-- | app/locations/views.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/app/locations/views.py b/app/locations/views.py index 5ae1ef9..e083e4f 100644 --- a/app/locations/views.py +++ b/app/locations/views.py @@ -1,8 +1,7 @@ -from django.shortcuts import render_to_response, get_object_or_404 +from django.shortcuts import render_to_response from django.template import RequestContext from blog.models import Entry -from locations.models import Location, Country, Region, Route -from projects.shortcuts import render_to_geojson +from locations.models import Country, Region, Route def map_list(request): @@ -31,14 +30,3 @@ def map_data(request): context, context_instance=RequestContext(request) ) - - -def data_json(request, id): - qs = Route.objects.filter(pk=id) - return render_to_geojson( - qs, - included_fields=['id', ], - geom_attribute='geometry', - mimetype='application/json', - pretty_print=True - ) |