From 30e47945e31b50c52d497b45f13bbea65d53da4e Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 22 Mar 2018 11:04:52 -0500 Subject: fixed a little bug in autocomplete for sightings --- app/sightings/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/sightings') 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 -- cgit v1.2.3-70-g09d2