summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-09-08 13:11:16 -0400
committerluxagraf <sng@luxagraf.net>2019-09-08 13:11:16 -0400
commitaca44010b0d34cc83491be7ef3a0de147598cc0b (patch)
tree24dea566aa125404c3a89ec538c9db028fd8c683
parent7db13e9d91b0a661760f8e25fbd64dbe911e12c3 (diff)
added autocomplete to admin sightings
-rw-r--r--app/sightings/admin.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/app/sightings/admin.py b/app/sightings/admin.py
index fcbc2ca..f6ec2af 100644
--- a/app/sightings/admin.py
+++ b/app/sightings/admin.py
@@ -92,9 +92,27 @@ class SightingAdmin(OSMGeoAdmin):
map_height = 425
map_template = 'gis/admin/osm.html'
openlayers_url = '/static/admin/js/OpenLayers.js'
+
+ fieldsets = (
+ ('', {
+ 'fields': (
+ 'ap',
+ 'point',
+ 'pub_date',
+ ),
+ 'classes': (
+ 'show',
+ 'extrapretty',
+ )
+ }
+ ),
+ )
class Media:
- js = ('next-prev-links.js',)
+ js = ('next-prev-links.js', 'choices.min.js', 'autocomplete.js')
+ css = {
+ "all": ("choices.mapfix.css", "choices.min.css",)
+ }
@admin.register(FieldNote)