summaryrefslogtreecommitdiff
path: root/app/locations/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-08-15 11:58:34 -0400
committerluxagraf <sng@luxagraf.net>2020-08-15 11:58:34 -0400
commitb66d000ee469539ce7aea557b612c0444177e36d (patch)
tree273547921dc6f9ded2a5681b82514c68e28ba448 /app/locations/views.py
parentd3e57c1bd17ad3e71810235a672d4782136901a5 (diff)
archived old unused apps and migrated fieldnotes to posts
Diffstat (limited to 'app/locations/views.py')
-rw-r--r--app/locations/views.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/locations/views.py b/app/locations/views.py
index 06f7838..bf6cd84 100644
--- a/app/locations/views.py
+++ b/app/locations/views.py
@@ -6,7 +6,7 @@ from django.conf import settings
from django.db.models import Q
from jrnl.models import Entry
-from projects.shortcuts import render_to_geojson
+#from projects.shortcuts import render_to_geojson
from sightings.models import Sighting
from utils.views import PaginatedListView
from .models import Country, Region, Route, Location, Track
@@ -73,15 +73,15 @@ def map_data(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
- )
+#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
+# )
class LocationDetail(DetailView):