diff options
author | luxagraf <sng@luxagraf.net> | 2018-03-22 11:04:52 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-03-22 11:04:52 -0500 |
commit | 30e47945e31b50c52d497b45f13bbea65d53da4e (patch) | |
tree | 655e4c09f8fa0d83d30daa4dca0d49671fe0ff4f /app/sightings | |
parent | ec28a9b734ded0ee3267c925546ba66f73b1fd34 (diff) |
fixed a little bug in autocomplete for sightings
Diffstat (limited to 'app/sightings')
-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 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 |