summaryrefslogtreecommitdiff
path: root/app/sightings/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-02-01 09:27:21 -0600
committerluxagraf <sng@luxagraf.net>2019-02-01 09:27:21 -0600
commit3a54cdb85027e4a59ca6d78f5b91dbf7be77afd0 (patch)
tree5fedfaa18d46d4da45ef9504b511eaa74bda4eae /app/sightings/views.py
parent34f95ec85a7956515f810c9fda7d9650edc7da30 (diff)
redid jrnl to speed things up and use less memory
Diffstat (limited to 'app/sightings/views.py')
-rw-r--r--app/sightings/views.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/sightings/views.py b/app/sightings/views.py
index f65011c..c90e5c1 100644
--- a/app/sightings/views.py
+++ b/app/sightings/views.py
@@ -3,7 +3,6 @@ from django.views.generic import ListView
from django.contrib.auth.models import User
from utils.views import PaginatedListView
from .models import AP, Sighting
-from dal import autocomplete
class SightingListView(PaginatedListView):
@@ -57,14 +56,3 @@ class SightingDetailView(DetailView):
except Sighting.DoesNotExist:
pass
return context
-
-
-class APAutocomplete(autocomplete.Select2QuerySetView):
- def get_queryset(self):
- if not self.request.user.is_authenticated:
- return AP.objects.none()
- qs = AP.objects.all()
- if self.q:
- qs = qs.filter(common_name__icontains=self.q)
- return qs
-