From 77f0a81785c15ffca51709160a90e805955c1522 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 25 Mar 2018 08:38:12 -0500 Subject: changed search filter to contains --- 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 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 -- cgit v1.2.3-70-g09d2