summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-03-25 08:38:12 -0500
committerluxagraf <sng@luxagraf.net>2018-03-25 08:38:12 -0500
commit77f0a81785c15ffca51709160a90e805955c1522 (patch)
treec466d81f4ae56ad57a542b475dd975de3cc7f2ff
parent75fdc8069ecb9f0cd2cfa0686e3d03a3afe4bc20 (diff)
changed search filter to contains
-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 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