summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-09-27 09:04:55 -0600
committerluxagraf <sng@luxagraf.net>2022-09-27 09:04:55 -0600
commit93e54423832c98ce63353189419e67c4d1e24346 (patch)
treec38f78a40e3fe8e95cdb7cbcb07e13efae53d2cf
parentf547a33e18f3c3b6de199d72e2c6fcfbb94de11b (diff)
sightings: added date seen and a search field to admin
-rw-r--r--app/sightings/admin.py3
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