diff options
-rw-r--r-- | app/sightings/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/sightings/views.py b/app/sightings/views.py index e982771..e97638f 100644 --- a/app/sightings/views.py +++ b/app/sightings/views.py @@ -55,6 +55,6 @@ class APAutocomplete(autocomplete.Select2QuerySetView): return AP.objects.none() qs = AP.objects.all() if self.q: - qs = qs.filter(common_name__istartswith=self.q) + qs = qs.filter(common_name__icontains=self.q) return qs |