diff options
author | luxagraf <sng@luxagraf.net> | 2018-03-22 11:42:50 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-03-22 11:42:50 -0500 |
commit | 75fdc8069ecb9f0cd2cfa0686e3d03a3afe4bc20 (patch) | |
tree | 69c0aaf2a33695bfc2db0e6968bb6e4505eb00fc /app/sightings | |
parent | 30e47945e31b50c52d497b45f13bbea65d53da4e (diff) |
fixed some autocomplete bugs
Diffstat (limited to 'app/sightings')
-rw-r--r-- | app/sightings/forms.py | 4 | ||||
-rw-r--r-- | app/sightings/views.py | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/sightings/forms.py b/app/sightings/forms.py index 9be7dcc..bbc471f 100644 --- a/app/sightings/forms.py +++ b/app/sightings/forms.py @@ -8,7 +8,5 @@ class SightingsForm(autocomplete.FutureModelForm): model = Sighting fields = ('ap', 'point', ) widgets = { - 'ap': autocomplete.TaggitSelect2( - 'ap-autocomplete' - ) + 'ap': autocomplete.ModelSelect2(url='ap-autocomplete') } diff --git a/app/sightings/views.py b/app/sightings/views.py index 016e437..e982771 100644 --- a/app/sightings/views.py +++ b/app/sightings/views.py @@ -57,3 +57,4 @@ class APAutocomplete(autocomplete.Select2QuerySetView): if self.q: qs = qs.filter(common_name__istartswith=self.q) return qs + |