summaryrefslogtreecommitdiff
path: root/app/sightings/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sightings/admin.py')
-rw-r--r--app/sightings/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/sightings/admin.py b/app/sightings/admin.py
index e3cfb64..610260e 100644
--- a/app/sightings/admin.py
+++ b/app/sightings/admin.py
@@ -7,7 +7,6 @@ from utils.util import get_latlon
from utils.widgets import CustomSelectMultiple, LGEntryForm
from django.contrib.admin.options import FORMFIELD_FOR_DBFIELD_DEFAULTS
-
@admin.register(APClass)
class APClassAdmin(admin.ModelAdmin):
list_display = ('common_name', 'scientific_name', 'kind')
@@ -103,6 +102,7 @@ class SightingAdmin(OSMGeoAdmin):
list_filter = (('location', admin.RelatedOnlyFieldListFilter), 'pub_date')
list_display = ('ap', 'location', 'pub_date')
search_fields = ['ap__common_name',]
+ autocomplete_fields = ["ap"]
# options for OSM map Using custom ESRI topo map
lat, lon = get_latlon()
default_lon = lon