summaryrefslogtreecommitdiff
path: root/app/sightings/views.py
diff options
context:
space:
mode:
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
-