summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/sightings/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/sightings/views.py b/app/sightings/views.py
index bf4cd81..016e437 100644
--- a/app/sightings/views.py
+++ b/app/sightings/views.py
@@ -55,5 +55,5 @@ class APAutocomplete(autocomplete.Select2QuerySetView):
return AP.objects.none()
qs = AP.objects.all()
if self.q:
- qs = qs.filter(name__istartswith=self.q)
+ qs = qs.filter(common_name__istartswith=self.q)
return qs