diff options
Diffstat (limited to 'app/sightings/admin.py')
-rw-r--r-- | app/sightings/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/sightings/admin.py b/app/sightings/admin.py index fc948c9..3b04beb 100644 --- a/app/sightings/admin.py +++ b/app/sightings/admin.py @@ -101,7 +101,8 @@ class APAdmin(admin.ModelAdmin): @admin.register(Sighting) class SightingAdmin(OSMGeoAdmin): list_filter = (('location', admin.RelatedOnlyFieldListFilter),) - list_display = ('ap', 'location') + list_display = ('ap', 'location', 'pub_date') + search_fields = ['ap__common_name',] # options for OSM map Using custom ESRI topo map lat, lon = get_latlon() default_lon = lon |