summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/sightings/forms.py4
-rw-r--r--app/sightings/views.py1
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
+