From 93e54423832c98ce63353189419e67c4d1e24346 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 27 Sep 2022 09:04:55 -0600 Subject: sightings: added date seen and a search field to admin --- app/sightings/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/sightings') 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 -- cgit v1.2.3-70-g09d2